@usthing/ui-core
v2.2.0
Published
:metal: UI library for USThing
Downloads
2
Readme
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-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'))