bugu-ui

UI library for React

Usage no npm install needed!

<script type="module">
  import buguUi from 'https://cdn.skypack.dev/bugu-ui';
</script>

README

BUGU UI

🦜 bugu-ui 一个实用轻量的React组件库


npm node-current npm

Travis (.org) Codecov npm bundle size

👏 特性

  • 🤜 开箱即用
  • 💪 TypeScript 开发,内置类型定义文件
  • 👋 支持 Tree Shaking
  • 🤝 支持主题定制

📄 预览

💻 支持环境

  • React >= 16
  • 现代浏览器,非 IE
  • 支持服务端渲染(SSR)

🧩 安装

yarn add bugu-ui

# or

npm install bugu-ui --save

🏎 使用

  • 基本使用
import React from 'react'
import { Button } from 'bugu-ui'
import 'bugu-ui/dist/bugu-ui.css'

const App = () => {
  return <Button type="primary">bugu-ui</Button>
}

export default App
  • 按需加载
import Button from 'bugu-ui/es/button'
import 'bugu-ui/es/button/index.css'

🔑 License

MIT