高品质的UI工具包,React 16+的组件库。
npm install uiw --save
import React from 'react'; import ReactDOM from 'react-dom'; import { Button } from 'uiw'; ReactDOM.render( Hello, document.getElementById('app') );
在浏览器中使用 script 和 link 标签直接引入文件,并使用全局变量 uiw。
script
link
我们在 npm 发布包内的 uiw/dist 目录下提供了 uiw.js uiw.css 以及 uiw.min.js uiw.min.css。你也可以通过 UNPKG 进行下载。
npm
uiw/dist
uiw.js
uiw.css
uiw.min.js
uiw.min.css
⚠️ 强烈不推荐使用已构建文件,这样无法按需加载。 ⚠️ 浏览器引入只在 uiw v2.x 以上的版本支持。
要开发,运行自重新构建,获取代码:
$ git clone https://github.com/uiwjs/uiw.git $ cd uiw $ npm install # or yarn install
要开发,运行自重新构建:
# Run the app # Restart the app automatically every time code changes. # Useful during development. $ npm start
打开浏览器并访问:http://127.0.0.1:2087
更新文档
npm run deploy
文件目录说明
├── dist # document the static file. ├── docs # documentation in markdown ├── lib ├── package.json ├── script └── src # react source code