hxy-react-component
v1.0.0
Published
A modern React mobile UI component library
Maintainers
Readme
Mobile UI
一个现代化的 React 移动端 UI 组件库,基于 TypeScript 开发,支持按需引入。
特性
- 🎨 现代化设计语言
- 📱 移动端优先,完美适配各种屏幕尺寸
- 🔧 基于 TypeScript 开发,提供完整的类型定义
- 📦 支持按需引入,减少打包体积
- 🎯 兼容 iOS 10+ 和 Android 5+
- 📖 完善的文档和示例
安装
npm install hxy-react-component
# 或
yarn add hxy-react-component使用
import React from 'react'
import { Button, Input } from 'hxy-react-component'
import 'hxy-react-component/dist/index.css'
function App() {
return (
<div>
<Button type="primary">点击我</Button>
<Input placeholder="请输入内容" />
</div>
)
}按需引入
import { Button } from 'hxy-react-component/lib/button'
import 'hxy-react-component/lib/button/style'开发
# 安装依赖
npm install
# 启动开发服务器
npm run dev
# 构建组件库
npm run build:lib
# 启动文档站点
npm run dev:docs
# 运行测试
npm run test
# 代码检查
npm run lint浏览器兼容性
- iOS 10+
- Android 5+
- Chrome 60+
- Safari 10+
许可证
MIT
