cp-design
TypeScript icon, indicating that this package has built-in type declarations

0.3.4 • Public • Published

CP design

React hooks Typescript H5 Mobile Component

English | 简体中文

badge button icon

项目截图

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

  • Modern browsers and Internet Explorer 11+ (with polyfills)
  • Server-side Rendering
  • Electron
IE / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
Electron
Electron
IE11, Edge last 2 versions last 2 versions last 2 versions last 2 versions

📦 Install

npm install cp-design --save
yarn add cp-design

✨ Notice

在组件库中使用了 SASS,在安装的时候记得安装 node-sass

npm install node-sass --save-dev
yarn add node-sass -D

🔨 Usage

import { Button } from 'cp-design'
 
const App = () => (
  <>
    <Button type="primary">PRESS ME</Button>
  </>
)

Componets

  • 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

Demo

mobile web demo

https://10086xiaozhang.github.io/CP-DESIGN

Install & Usage

introduce

Browser Support

  • iOS
  • Android 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! :)

Package Sidebar

Install

npm i cp-design

Weekly Downloads

1

Version

0.3.4

License

MIT

Unpacked Size

2.88 MB

Total Files

681

Last publish

Collaborators

  • jimckzhang