English | 简体中文
badge | button | icon |
A configurable Mobile UI specification and React-based implementation.
- Follow CP Design Mobile UI specification.
- Configurable UI style for different products.
- Develop in TypeScript.
IE / Edge |
Firefox |
Chrome |
Safari |
Electron |
---|---|---|---|---|
IE11, Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
npm install cp-design --save
yarn add cp-design
SASS is used in the component library, remember to install node-sass when installing
npm install node-sass --save-dev
yarn add node-sass -D
import { Button } from 'cp-design'
const App = () => (
<>
<Button type="primary">PRESS ME</Button>
</>
)
- Icon,
- Button,
- Input,
- Row,
- Col,
- Affix,
- Avatar,
- Badge,
- Card,
- CheckboxGroup,
- Checkbox,
- Accordion,
- Divider,
- Modal,
- Overlay,
- Pagination,
- Progress,
- Radio,
- Slider,
- Step,
- Spin,
- Switch,
- Tabs,
- Tag,
- ImagePicker,
- Toast,
- ActionSheet,
- TabBar,
- PickerPanel,
- Picker,
- SegmentedControl,
- Popover,
- NoticeBar,
- SwipeAction
- ListView
iOS
Android 4.0+
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! :)