UNPKG

cjd-parkball

Version:

> 中后台业务组件库,中后台就像公园,进入需要买门票(登录),所以以 Parkball(公园球) 命名,公园内必定捕获!作为一个组件库,提供使用方法文档,方便开发者的调用

34 lines (26 loc) 792 B
--- category: 2 title: 支持更多内容配置 title_en: Support more content configuration --- zh-CN 一种支持封面、头像、标题和描述信息的卡片。 en-US A Card that supports `cover`, `avatar`, `title` and `description`. ````jsx import { Card, Icon, Avatar } from 'parkball'; const { Meta } = Card; ReactDOM.render( <Card style={{ width: 300 }} cover={<img alt="example" src="https://gw.alipayobjects.com/zos/rmsportal/JiqGstEfoWAOHiTxclqi.png" />} actions={[<Icon type="setting" />, <Icon type="edit" />, <Icon type="ellipsis" />]} > <Meta avatar={<Avatar src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" />} title="Card title" description="This is the description" /> </Card>, mountNode); ````