一个基于「 React 」框架的个性化 UI 组件库
$ npm install hanayi-ui
$ yarn add hanayi-ui
在index.tsx(.jsx)
中:
import "hanayi-ui/dist/index.css";
import React from "react";
import { Button } from "hanayi-ui";
const App = () => (
<>
<Button btnType="primary" size="lg">
CLICK ME
</Button>
</>
);
violet-design
默认支持基于 ES modules 的 tree shaking。
violet-design
使用 TypeScript 进行书写并提供了完整的定义文件。