1.0.0 • Published 6 years ago
deriv-components v1.0.0
component
Reusable UI components for Deriv.
##Commands: setup :
lerna bootstrapserve :
npm run servebuild :
npm run buildtest :
npm run teststorybook:
npm run storybookUsage
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
1.0.0
6 years ago