@gear-js/ui
TypeScript icon, indicating that this package has built-in type declarations

0.7.0 • Public • Published

GEAR

Gear UI Components


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 };

Readme

Keywords

Package Sidebar

Install

npm i @gear-js/ui

Weekly Downloads

81

Version

0.7.0

License

GPL-3.0

Unpacked Size

218 kB

Total Files

22

Last publish

Collaborators

  • osipov-mit
  • nikitayutanov