Skip to content

Latest commit

 

History

History
59 lines (44 loc) · 1.14 KB

README.md

File metadata and controls

59 lines (44 loc) · 1.14 KB

A React UI Library

dev

yarn storybook

test

yarn test

local test

antd icon import on demand

antd-icon

Usage

  • Getting Started
import { VirtualSelect, VirtualAutoComplete, VirtualTree } from 'iron-ui';
// load all style
import 'iron-ui/dist/iron-ui.min.css';
  • Import on Demand
[
  'import',
  {
    libraryName: 'iron-ui',
    // style: true, // if app support less
    style: (name) => `${name}/style/index.css`,
    customName: (name) => {
      const prefix = 'iron-ui/es';
      if (/virtual-(.*)/.test(name)) {
        const validName = name.replace(/virtual-(.*)/, '$1');
        return `${prefix}/${validName.toLowerCase()}`;
      }
      return `${prefix}/${name}`;
    },
  },
];

Thanks