Gen3 UI 组件库
Gen3 应用程序的 UI 库
快速启动
安装
用 npm 安装 :
$ npm install --save @gen3/ui-component
使用量
import Button from '@gen3/ui-component/dist/components/Button';
const myFunc = () => {
console.log('clicked!');
};
<Button buttonType='primary' label='Primary Button' onClick={myFunc} leftIcon=’download’ />
API 密码
克隆回波并尝试更多的组件:
$ git clone [email protected]:uc-cdis/gen3-ui-component.git
npm run storybook
对于开发者
执行前运行以下脚本 :
$ npm version patch
它会撞倒 npm 软件包的版本并执行更改.