4
0%
MIT
unpublishedBucklescript bindings for Semantic UI React

bs-semantic-ui-react

A work in progress Bucklescript and ReasonReact set of bindings for Semantic UI React.

You can find a example usage of theses bindings in the ElpIDE project : source || demo

Introduction

This is an early work in progress that I build to fulfill my need. But I hope it is a clean enough basis for anyone to participate (there are loads of components with hundreds of properties in Semantic UI React).

The method I used to create these bindings is well documented in this blog post by Khoa Nguyen.

Installation

To use these bindings in an existing ReasonReact project simply add the repository to your dependencies :

yarn add "https://github.com/voodoos/bs-semantic-ui-react"

And ask bsb to use it by adding bs-semantic-ui-react to bs-dependencies in your bsconfig.json.

You will also need to load semantic-ui's css, here is one way to do it :

  • RE
  • ML
[%bs.raw {|require('semantic-ui-css/semantic.min.css')|}];
let _ = [%bs.raw {|require('semantic-ui-css/semantic.min.css')|}]

Contributions

All contributions are welcomed.

LICENSE

MIT (see LICENSE file for more details)