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