deriv-components

1.0.0 • Public • Published

component

Reusable UI components for Deriv.

##Commands: setup :

lerna bootstrap

serve :

npm run serve

build :

npm run build

test :

npm run test

storybook:

  npm run storybook

Usage

You can import individual components on demand and import style manually:

import Button from 'deriv-components/lib/Button';
import 'deriv-components/lib/button.css';
const SomeComponent = () => (
    <Button is_disabled primary>
      Hello World
    </Button>
  );

Or you can use deriv-components-loader to import components from deriv-components without having to manually import the corresponding stylesheet. The deriv-components-loader will automatically import stylesheets.

import { Button } from 'deriv-components';
const SomeComponent = () => (
   <Button is_disabled primary>
     Hello World
   </Button>
 );

Components

Readme

Keywords

none

Package Sidebar

Install

npm i deriv-components

Weekly Downloads

2

Version

1.0.0

License

Apache-2.0

Unpacked Size

912 kB

Total Files

142

Last publish

Collaborators

  • mgprogm