1.3.1-patch2 • Published 6 years ago

usthing-ui v1.3.1-patch2

Weekly downloads
2
License
MIT
Repository
-
Last release
6 years ago

USThing.UI

:metal: UI library for USThing

Documentation

Checkout our Documentation site

Installation

USThing-UI is available as an npm package.

# With npm
npm i usthing-ui react prop-types immutable # immutable is only needed if you use <Editor/>

# With yarn
yarn add usthing-ui react prop-types immutable

Import-by-demand

  1. In .babelrc
plugins: [
  ["import", {
    "libraryName": "usthing-ui",
    "libraryDirectory": "lib",
    "camel2DashComponentName": true
  }]
]

Usage

import React from 'react'
import ReactDOM from 'react-dom'
import {Provider, Button} from 'usthing-ui'

cosnt App = () => (
  <Provider>
    <Button>Hello USThing!!</Button>
  </Provider>
)

ReactDOM.render(<App />, document.querySelector('#app'))