cp-design
v0.3.4
Published
A configurable Mobile UI by React Hooks
Maintainers
Readme
CP design
React hooks Typescript H5 Mobile Component
English | 简体中文

CP Design Mobile
A configurable Mobile UI specification and React-based implementation.
Features
- Follow CP Design Mobile UI specification.
- Configurable UI style for different products.
- Develop in TypeScript.
🖥 Environment Support
| IE / Edge | Firefox | Chrome | Safari | Electron | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | IE11, Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
📦 Install
npm install cp-design --saveyarn add cp-design✨ Notice
在组件库中使用了 SASS,在安装的时候记得安装 node-sass
npm install node-sass --save-devyarn add node-sass -D🔨 Usage
import { Button } from 'cp-design'
const App = () => (
<>
<Button type="primary">PRESS ME</Button>
</>
)Componets
- [x] Icon,
- [x] Button,
- [x] Input,
- [x] Row,
- [x] Col,
- [x] Affix,
- [x] Avatar,
- [x] Badge,
- [x] Card,
- [x] CheckboxGroup,
- [x] Checkbox,
- [x] Accordion,
- [x] Divider,
- [x] Modal,
- [x] Overlay,
- [x] Pagination,
- [x] Progress,
- [x] Radio,
- [x] Slider,
- [x] Step,
- [x] Spin,
- [x] Switch,
- [x] Tabs,
- [x] Tag,
- [x] ImagePicker,
- [x] Toast,
- [x] ActionSheet,
- [x] TabBar,
- [x] PickerPanel,
- [x] Picker,
- [x] SegmentedControl,
- [x] Popover,
- [x] NoticeBar,
- [x] SwipeAction
- [x] ListView
Demo
mobile web demo
Install & Usage
Browser Support
iOSAndroid 4.0+
Links
Contributing
We welcome all contributions, You can submit any ideas. If you'd like to improve code, check out the Development Instruction and have a good time! :)
