@gear-js/vara-ui
v0.1.1
Published
React UI components used across Vara applications
Downloads
2,824
Readme
Description
A React library that provides components that are used across Vara applications.
Installation
Install package:
npm install @gear-js/vara-ui
or
yarn add @gear-js/vara-ui
Import styles in application's root:
import '@gear-js/vara-ui/styles.css';
Getting started
Simple as it is, here's quick example:
import { Button } from '@gear-js/vara-ui';
import ArrowSVG from './images/arrow.svg?react';
function BackButton() {
const handleClick = () => {
console.log('Going back!');
};
return <Button text="Go back" icon={ArrowSVG} onClick={handleClick} />;
}
export { BackButton };