UNPKG

@gear-js/ui

Version:

React UI components used across Gear applications

48 lines (35 loc) 923 B
<p align="center"> <a href="https://gear-tech.io"> <img src="https://github.com/gear-tech/gear/blob/master/images/logo-grey.png" width="400" alt="GEAR"> </a> </p> <h3 align="center"> Gear UI Components </h3> <p align=center> <a href="https://github.com/gear-tech/gear-js/blob/master/LICENSE"><img src="https://img.shields.io/badge/License-GPL%203.0-success"></a> </p> <hr> ## Description A React library that provides components that are used across Gear applications. ## Installation ```sh npm install @gear-js/ui ``` or ```sh yarn add @gear-js/ui ``` ## Getting started Simple as it is, here's quick example: ```jsx 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 }; ```