A React library that provides components that are used across Vara applications.
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';
Simple as it is, here's quick example:
import { Button } from '@gear-js/vara-ui';
import { ReactComponent as ArrowSVG } from './images/arrow.svg';
function BackButton() {
const handleClick = () => {
console.log('Going back!');
};
return <Button text="Go back" icon={ArrowSVG} onClick={handleClick} />;
}
export { BackButton };