Migration status | How do I install? | Usage
Not all of the UIKit components were implemented.
- Icon
- Button
- Container
- Width
- Padding
- Spinner
- Badge
- Input
- Label
- Link
- ...
- Add the reason-uikit package to your project.
yarn add reason-uikit
- Add
reason-uikit
to yourbsconfig.json
{
"dependencies": [ "reason-uikit" ]
}
- Enjoy!
Import ReasonUIKit and just use the components.
open ReasonUIKit;
[@react.component]
let make = () =>
<Container size=Container.SizeSmall>
<Button onClick={_ => ()} style=Button.StylePrimary size=Button.SizeLarge>
<Icon icon=Icon.Play ratio=2 />
</Button>
</Container>;