A React library that provides components that are used across Gear applications.
npm install @gear-js/ui
or
yarn add @gear-js/ui
Simple as it is, here's quick example:
import { Button } from '@gear-js/ui';
import arrowIcon from './images/arrow.svg';
function BackButton() {
const handleClick = () => {
console.log('Going back!');
};
return <Button text="Go back" icon={arrowIcon} onClick={handleClick} />;
}
export { BackButton };