<img alt="NPM Version" src="https://img.shields.io/npm/v/@deriv-com/ui"> <img alt="NPM Downloads" src="https://img.shields.io/npm/dw/@deriv-com/ui"> <img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="@deriv-com/ui is released under the MIT
npm install @deriv-com/uiAlso available on npm.
It features two main sections:
- components: contains all the components that are built to be used in the deriv platform.
- hooks: which contains all the hooks that might be needed in deriv projects. for now we only have two hooks (useOnClickOutside and useDevice)
npm i @deriv-com/ui
`Usage Example
`
import {Button} from "@deriv-com/ui"
`
you can explore the Storybook to learn about the available props for each component.
Development
To get started, first install all of the relevant packages by doing:
`
npm i
`
Since this projects uses Storybook to showcase the components. You can serve them by simply running this command:
`
npm run storybook
``