deriv-components-am

1.0.0 • Public • Published

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

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-am

Weekly Downloads

2

Version

1.0.0

License

Apache-2.0

Unpacked Size

7.03 MB

Total Files

185

Last publish

Collaborators

  • cakasuma