🍃 Leaf-UI
A react component library for web, native and amp built using styled-components
[WARNING: This is a work in progress, API is subject to change]
Installation
npm install -S leaf-ui
Usage
Wrap your App component with ThemeProvider and pass it the leaf-ui theme (or override it with custom a theme)
// index.js;;;;; ReactDOM;
Import and use the components in your App.js
// App.js;; // for commonjs use,// import Button from 'leaf-ui/cjs/Button'; const App = <Button> Leaf-UI </Button>; ;
Supported Platforms
- web
- native
- amp
Contribute
Read our contributing guide to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to leaf-ui.
Setup
Follow this quick setup guide to get leaf-ui working on your local machine.