2.2.0 • Published 5 years ago

@usthing/ui-core v2.2.0

Weekly downloads
1
License
MIT
Repository
-
Last release
5 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-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)

  1. 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'))