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

0.0.10 • Public • Published

GEAR


Description

A React library that provides components that are used across Vara applications.

Installation

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

Getting started

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

Readme

Keywords

Package Sidebar

Install

npm i @gear-js/vara-ui

Weekly Downloads

362

Version

0.0.10

License

GPL-3.0

Unpacked Size

304 kB

Total Files

28

Last publish

Collaborators

  • nikitayutanov