Skip to content

Latest commit

 

History

History
53 lines (47 loc) · 1.05 KB

README.md

File metadata and controls

53 lines (47 loc) · 1.05 KB

Index

  • General - Contains general philosophy and overview of this package
  • Modules docs - Contains implementation guides (i.e., scaffolding, code usage)

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

storybook:build:

npm run storybook:build

storybook:deploy:

npm run storybook:deploy br_storybook

Usage

You can import individual components with ES6 named imports.

import { Button } from '@deriv/components';

const SomeComponent = () => (
   <Button is_disabled primary>
     Hello World
   </Button>
 );

NOTE: While developing new components, be mindful that import the direct .jsx file, instead of referencing ../component/index.js. This will make sure there won't be a style bleed When it is imported from other packages.

Components