@kjy/kui
v0.13.23-noswiper1
Published
Mobile UI Components built on React
Downloads
11
Readme
Kui
客集集移动端 React 组件库
✨ 特性
- ✅ 20+ 高质量组件
- ✅ 90% 单元测试覆盖率
- ✅ 完善的文档和示例
- ✅ TypeScript 开发,提供完整的类型定义文件。
- ✅ 完全使用 Hooks 实现
- ✅ 支持按需引入
- ✅ 支持主题定制
🖥 环境支持
- 移动端浏览器
- iOS 8+,Android 4.4+
- React 16.8+
Browsers support
| IE / Edge | Firefox | Chrome | Safari | iOS Safari | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | IE11, Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
📦 安装
npm install @kjy/kui --save
yarn add @kjy/kui
🔨 示例
import { Button } from '@kjy/kui';
import '@kjy/kui/dist/kui.css';
const App = () => <Button type="primary">Button</Button>;
使用babel-plugin-import进行按需加载
npm install babel-plugin-import --save-dev
Via .babelrc or babel-loader.
{
"plugins": [
[
"import",
{
"libraryName": "kui",
"style": "css" // or 'true' for less
}
]
]
}
🔗 链接