0.1.0 • Published 5 years ago

wizard-ui-docs v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

wizard-ui

A Design System with React.

Build Status Codecov npm package Netlify Status

Install and Usage

Dev and webpack setting

Add in package.json

yarn add wizard-ui
# css loader
yarn add --dev style-loader css-loader
# react bootstrap font dev
yarn add --dev url-loader file-loader

if you not use create-react-app, you need set webpack config:

{
  test: /\.css$/,
  use: [
    'style-loader',
    'css-loader',
  ]
},
{
  test: /\.(eot|woff|woff2|svg|ttf)([\?]?.*)$/,
  use: ['file-loader']
},
{
  test: /\.(png|woff|woff2|eot|ttf|svg)$/,
  use: 'url-loader?limit=100000'
}

Global style

import 'wizard-ui/lib/style/index.css';

Usage

UMD

import { Icon } from 'wizard-ui';

export default () => <Icon type="os-search-role" />

ES

import { Icon } from 'wizard-ui/esm';

export default () => <Icon type="os-search-role" />