@gear-js/ui
v0.5.28
Published
React UI components used across Gear applications
Downloads
3,454
Readme
Description
A React library that provides components that are used across Gear applications.
Installation
npm install @gear-js/ui
or
yarn add @gear-js/ui
Getting started
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 };