/reason-uikit

Primary LanguageReasonMIT LicenseMIT


reason-uikit

A ReasonML React implementation of the UIKit

GitHub top language GitHub language count GitHub commit activity Repository size
GitHub last commit Repository issues GitHub

Migration status   |    How do I install?   |    Usage

Migration status

Not all of the UIKit components were implemented.

Finished

Partially

  • Icon
  • Button
  • Container
  • Width
  • Padding
  • Spinner
  • Badge

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