A React UI Library
yarn storybook
yarn test
- error solution
- error detail
npm link /path/to/testApp/node_modules/react
(it will conflict with storybook)
- 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}`;
},
},
];