You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
674 B
40 lines
674 B
import React from 'react';
|
|
import { Badge, Space } from 'antd';
|
|
|
|
const colors = [
|
|
'pink',
|
|
'red',
|
|
'yellow',
|
|
'orange',
|
|
'cyan',
|
|
'green',
|
|
'blue',
|
|
'purple',
|
|
'geekblue',
|
|
'magenta',
|
|
'volcano',
|
|
'gold',
|
|
'lime',
|
|
];
|
|
|
|
const App: React.FC = () => (
|
|
<Space wrap size={['large', 'middle']}>
|
|
{colors.map((color) => (
|
|
<Badge color={color} count={44} key={color}>
|
|
<div
|
|
style={{
|
|
width: 90,
|
|
height: 90,
|
|
lineHeight: '90px',
|
|
background: '#ccc',
|
|
textAlign: 'center',
|
|
}}
|
|
>
|
|
{color}
|
|
</div>
|
|
</Badge>
|
|
))}
|
|
</Space>
|
|
);
|
|
|
|
export default App;
|
|
|