1.0.0 • Published 4 years ago
deriv-components-am v1.0.0
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
1.0.0
4 years ago