mirror of
https://github.com/zuiidea/antd-admin
synced 2026-11-27 08:14:06 +00:00
19 lines
579 B
JavaScript
19 lines
579 B
JavaScript
import React, { PropTypes } from 'react'
|
|
import { Icon, Card } from 'antd'
|
|
import styles from './numberCard.less'
|
|
|
|
function NumberCard(props) {
|
|
const { icon, color, title, number } = props
|
|
return (
|
|
<Card className={styles.numberCard} bordered={false} bodyStyle={{padding:0}}>
|
|
<Icon className={styles.iconWarp} style={{ color }} type={icon} />
|
|
<div className={styles.content}>
|
|
<p className={styles.title}>{title || 'No Title'}</p>
|
|
<p className={styles.number}>{number || '10,000'}</p>
|
|
</div>
|
|
</Card>
|
|
)
|
|
}
|
|
|
|
export default NumberCard
|