
In order to meet the design specification requirements, our team developed "Violet Design" - a React-based UI component library. Violet Design provides a wealth of components and functions that meet different business needs while being extremely beautiful and coordinated.
React components out of the box.TypeScript , provide a complete type definition file. Edge | Firefox | Chrome | Safari | Opera |
|---|---|---|---|---|
| Edge | Last two versions | Last two versions | Last two versions | Last two versions |
It is recommended to use npm to install it, enjoy the convenience brought by the ecosystem and tools, which can be easily debugged in the development environment, or can be packaged and deployed in the ecological environment.
$ npm install violet-design
$ yarn add violet-design
Use script and link tags in the browser to directly import files and use the global variable VioletDesign .
Introducing CSS:
< link rel =" stylesheet " href =" https://unpkg.com/violet-design/dist/index.css " >Introducing JS:
< script src =" https://unpkg.com/violet-design/dist/index.umd.js " > </ script > In index.tsx(.jsx) :
import 'violet-design/dist/index.css' import React from 'react' ;
import { Button } from 'violet-design' ;
const App = ( ) => (
< >
< Button btnType = "primary" size = "lg" > PRESS ME </ Button >
</ >
) ; violet-design supports tree shaking based on ES modules by default.
violet-design is written using TypeScript and provides a complete definition file.
@ZhaoYuhang. @LiWei. @WangZijun. @YangJiawei. @WanYuhui. @ZhuBeijia. @ChenXinyi.
If you wish to participate in the contribution, welcome to Pull Request!