0.5.0 • Published 4 years ago

reason-uikit v0.5.0

Weekly downloads
13
License
MIT
Repository
github
Last release
4 years ago

Status of migration

Not all of the UIKit components were implemented.

Finished

Partially

  • Icon
  • Button
  • Container
  • Width
  • Padding

To begin

  • Input
  • Label
  • Link
  • ...

How do I install?

  1. Add the reason-uikit package to your project.
yarn add reason-uikit
  1. Add reason-uikit to your bsconfig.json
{
  "dependencies": [ "reason-uikit" ]
}
  1. Enjoy!

Usage

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