USThing.UI
Documentation
Checkout our Documentation site
Installation
USThing-UI is available as an npm package.
# With npm
npm i @usthing/ui-core @emotion/core @emotion/styled
# With yarn
yarn add @usthing/ui-core @emotion/core @emotion/styled
Import-by-demand (Only if your bundler does not support tree-shaking)
- In .babelrc
plugins: [
["import", {
"libraryName": "@usthing/ui-core",
"libraryDirectory": "lib",
"camel2DashComponentName": true
}]
]
Usage
import React from 'react'
import ReactDOM from 'react-dom'
import {Button} from '@usthing/ui-core'
cosnt App = () => (
<Button>Hello USThing!!</Button>
)
ReactDOM.render(<App />, document.querySelector('#app'))