leaf-ui
🍃 Leaf-UI: A react component library built using styled-components
Last updated 2 months ago by lakshya.ranganath .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install leaf-ui 
SYNC missed versions from official npm registry.

???? 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
import React from 'react';
import ReactDOM from 'react-dom';
import { ThemeProvider } from 'styled-components';
import leafUiTheme, { BaseStyles } from 'leaf-ui/theme/web';
import App from './App';

ReactDOM.render(
  <ThemeProvider theme={leafUiTheme}>
    <BaseStyles/>
    <App />
  </ThemeProvider>,
  document.getElementById('root'),
);

Import and use the components in your App.js

// App.js
import React from 'react';
import Button from 'leaf-ui/Button/web';

// for commonjs use,
// import Button from 'leaf-ui/cjs/Button/web';

const App = () => (
  <Button>
    Leaf-UI
  </Button>
);

export default App;

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.

Current Tags

  • 0.55.0                                ...           latest (2 months ago)

202 Versions

  • 0.55.0                                ...           2 months ago
  • 0.54.1                                ...           3 months ago
  • 0.54.0                                ...           3 months ago
  • 0.53.0                                ...           4 months ago
  • 0.52.4                                ...           4 months ago
  • 0.52.3                                ...           4 months ago
  • 0.52.2                                ...           5 months ago
  • 0.52.1                                ...           5 months ago
  • 0.52.0                                ...           5 months ago
  • 0.51.0                                ...           5 months ago
  • 0.50.4                                ...           5 months ago
  • 0.50.3                                ...           5 months ago
  • 0.50.2                                ...           5 months ago
  • 0.50.1                                ...           5 months ago
  • 0.50.0                                ...           5 months ago
  • 0.49.14                                ...           7 months ago
  • 0.49.13                                ...           7 months ago
  • 0.49.12                                ...           7 months ago
  • 0.49.11                                ...           7 months ago
  • 0.49.10                                ...           7 months ago
  • 0.49.9                                ...           7 months ago
  • 0.49.8                                ...           7 months ago
  • 0.49.7                                ...           7 months ago
  • 0.49.6                                ...           8 months ago
  • 0.49.5                                ...           8 months ago
  • 0.49.4                                ...           8 months ago
  • 0.49.3                                ...           8 months ago
  • 0.49.2                                ...           8 months ago
  • 0.49.1                                ...           8 months ago
  • 0.49.0                                ...           8 months ago
  • 0.48.1                                ...           8 months ago
  • 0.48.0                                ...           8 months ago
  • 0.47.18                                ...           8 months ago
  • 0.47.17                                ...           8 months ago
  • 0.47.16                                ...           8 months ago
  • 0.47.15                                ...           8 months ago
  • 0.47.14                                ...           9 months ago
  • 0.47.13                                ...           9 months ago
  • 0.47.12                                ...           9 months ago
  • 0.47.11                                ...           9 months ago
  • 0.47.10                                ...           9 months ago
  • 0.47.9                                ...           9 months ago
  • 0.47.8                                ...           9 months ago
  • 0.47.7                                ...           9 months ago
  • 0.47.6                                ...           9 months ago
  • 0.47.5                                ...           9 months ago
  • 0.47.4                                ...           9 months ago
  • 0.47.3                                ...           9 months ago
  • 0.47.2                                ...           9 months ago
  • 0.47.1                                ...           9 months ago
  • 0.47.0                                ...           9 months ago
  • 0.46.2                                ...           9 months ago
  • 0.46.1                                ...           9 months ago
  • 0.46.0                                ...           9 months ago
  • 0.45.6                                ...           9 months ago
  • 0.45.5                                ...           9 months ago
  • 0.45.4                                ...           9 months ago
  • 0.45.3                                ...           9 months ago
  • 0.45.2                                ...           9 months ago
  • 0.45.1                                ...           9 months ago
  • 0.45.0                                ...           9 months ago
  • 0.44.4                                ...           10 months ago
  • 0.44.3                                ...           10 months ago
  • 0.44.2                                ...           10 months ago
  • 0.44.1                                ...           10 months ago
  • 0.44.0                                ...           10 months ago
  • 0.43.5                                ...           10 months ago
  • 0.43.4                                ...           10 months ago
  • 0.43.3                                ...           10 months ago
  • 0.43.2                                ...           10 months ago
  • 0.43.1                                ...           10 months ago
  • 0.43.0                                ...           10 months ago
  • 0.42.2                                ...           10 months ago
  • 0.42.1                                ...           10 months ago
  • 0.42.0                                ...           10 months ago
  • 0.41.1                                ...           10 months ago
  • 0.41.0                                ...           10 months ago
  • 0.40.0                                ...           10 months ago
  • 0.39.6                                ...           10 months ago
  • 0.39.5                                ...           10 months ago
  • 0.39.4                                ...           10 months ago
  • 0.39.3                                ...           10 months ago
  • 0.39.2                                ...           10 months ago
  • 0.39.1                                ...           10 months ago
  • 0.39.0                                ...           a year ago
  • 0.38.20                                ...           a year ago
  • 0.38.19                                ...           a year ago
  • 0.38.18                                ...           a year ago
  • 0.38.17                                ...           a year ago
  • 0.38.16                                ...           a year ago
  • 0.38.15                                ...           a year ago
  • 0.38.14                                ...           a year ago
  • 0.38.13                                ...           a year ago
  • 0.38.12                                ...           a year ago
  • 0.38.11                                ...           a year ago
  • 0.38.10                                ...           a year ago
  • 0.38.9                                ...           a year ago
  • 0.38.8                                ...           a year ago
  • 0.38.7                                ...           a year ago
  • 0.38.6                                ...           a year ago
  • 0.38.5                                ...           a year ago
  • 0.38.4                                ...           a year ago
  • 0.38.3                                ...           a year ago
  • 0.38.2                                ...           a year ago
  • 0.38.1                                ...           a year ago
  • 0.38.0                                ...           a year ago
  • 0.37.2                                ...           a year ago
  • 0.37.1                                ...           a year ago
  • 0.37.0                                ...           a year ago
  • 0.36.3                                ...           a year ago
  • 0.36.2                                ...           a year ago
  • 0.36.1                                ...           a year ago
  • 0.36.0                                ...           a year ago
  • 0.35.3                                ...           a year ago
  • 0.35.2                                ...           a year ago
  • 0.35.1                                ...           a year ago
  • 0.35.0                                ...           a year ago
  • 0.34.4                                ...           a year ago
  • 0.34.3                                ...           a year ago
  • 0.34.2                                ...           a year ago
  • 0.34.1                                ...           a year ago
  • 0.34.0                                ...           a year ago
  • 0.33.0                                ...           a year ago
  • 0.32.2                                ...           a year ago
  • 0.32.1                                ...           a year ago
  • 0.32.0                                ...           a year ago
  • 0.31.1                                ...           a year ago
  • 0.31.0                                ...           a year ago
  • 0.30.1                                ...           a year ago
  • 0.30.0                                ...           a year ago
  • 0.29.2                                ...           a year ago
  • 0.29.1                                ...           a year ago
  • 0.29.0                                ...           a year ago
  • 0.28.5                                ...           a year ago
  • 0.28.4                                ...           a year ago
  • 0.28.3                                ...           a year ago
  • 0.28.2                                ...           a year ago
  • 0.28.1                                ...           a year ago
  • 0.28.0                                ...           a year ago
  • 0.27.1                                ...           a year ago
  • 0.27.0                                ...           a year ago
  • 0.26.0                                ...           a year ago
  • 0.25.2                                ...           a year ago
  • 0.25.1                                ...           a year ago
  • 0.25.0                                ...           a year ago
  • 0.24.6                                ...           a year ago
  • 0.24.5                                ...           a year ago
  • 0.24.4                                ...           a year ago
  • 0.24.3                                ...           a year ago
  • 0.24.2                                ...           a year ago
  • 0.24.1                                ...           a year ago
  • 0.24.0                                ...           a year ago
  • 0.23.0                                ...           a year ago
  • 0.22.4                                ...           a year ago
  • 0.22.3                                ...           a year ago
  • 0.22.2                                ...           a year ago
  • 0.22.1                                ...           a year ago
  • 0.22.0                                ...           a year ago
  • 0.21.1                                ...           a year ago
  • 0.21.0                                ...           a year ago
  • 0.20.4                                ...           a year ago
  • 0.20.3                                ...           a year ago
  • 0.20.2                                ...           a year ago
  • 0.20.1                                ...           a year ago
  • 0.20.0                                ...           a year ago
  • 0.19.6                                ...           a year ago
  • 0.19.5                                ...           a year ago
  • 0.19.4                                ...           a year ago
  • 0.19.3                                ...           a year ago
  • 0.19.2                                ...           a year ago
  • 0.19.1                                ...           a year ago
  • 0.19.0                                ...           a year ago
  • 0.18.0                                ...           a year ago
  • 0.17.2                                ...           a year ago
  • 0.17.1                                ...           a year ago
  • 0.17.0                                ...           a year ago
  • 0.16.0                                ...           a year ago
  • 0.15.1                                ...           a year ago
  • 0.15.0                                ...           a year ago
  • 0.14.2                                ...           a year ago
  • 0.14.1                                ...           a year ago
  • 0.14.0                                ...           a year ago
  • 0.13.3                                ...           a year ago
  • 0.13.2                                ...           a year ago
  • 0.13.1                                ...           a year ago
  • 0.13.0                                ...           a year ago
  • 0.12.0                                ...           a year ago
  • 0.11.0                                ...           a year ago
  • 0.10.0                                ...           a year ago
  • 0.9.0                                ...           2 years ago
  • 0.8.1                                ...           2 years ago
  • 0.8.0                                ...           2 years ago
  • 0.7.0                                ...           2 years ago
  • 0.6.0                                ...           2 years ago
  • 0.5.0                                ...           2 years ago
  • 0.4.1                                ...           2 years ago
  • 0.4.0                                ...           2 years ago
  • 0.3.2                                ...           2 years ago
  • 0.2.2                                ...           2 years ago
  • 0.2.1                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (10)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |