mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-04 17:09:46 +08:00
50 lines
1.5 KiB
TypeScript
50 lines
1.5 KiB
TypeScript
|
import React from 'react';
|
||
|
import { Badge, Card } from 'antd';
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<>
|
||
|
<Badge.Ribbon text="Hippies">
|
||
|
<Card title="Pushes open the window" size="small">
|
||
|
and raises the spyglass.
|
||
|
</Card>
|
||
|
</Badge.Ribbon>
|
||
|
<Badge.Ribbon text="Hippies" color="pink">
|
||
|
<Card title="Pushes open the window" size="small">
|
||
|
and raises the spyglass.
|
||
|
</Card>
|
||
|
</Badge.Ribbon>
|
||
|
<Badge.Ribbon text="Hippies" color="red">
|
||
|
<Card title="Pushes open the window" size="small">
|
||
|
and raises the spyglass.
|
||
|
</Card>
|
||
|
</Badge.Ribbon>
|
||
|
<Badge.Ribbon text="Hippies" color="cyan">
|
||
|
<Card title="Pushes open the window" size="small">
|
||
|
and raises the spyglass.
|
||
|
</Card>
|
||
|
</Badge.Ribbon>
|
||
|
<Badge.Ribbon text="Hippies" color="green">
|
||
|
<Card title="Pushes open the window" size="small">
|
||
|
and raises the spyglass.
|
||
|
</Card>
|
||
|
</Badge.Ribbon>
|
||
|
<Badge.Ribbon text="Hippies" color="purple">
|
||
|
<Card title="Pushes open the window" size="small">
|
||
|
and raises the spyglass.
|
||
|
</Card>
|
||
|
</Badge.Ribbon>
|
||
|
<Badge.Ribbon text="Hippies" color="volcano">
|
||
|
<Card title="Pushes open the window" size="small">
|
||
|
and raises the spyglass.
|
||
|
</Card>
|
||
|
</Badge.Ribbon>
|
||
|
<Badge.Ribbon text="Hippies" color="magenta">
|
||
|
<Card title="Pushes open the window" size="small">
|
||
|
and raises the spyglass.
|
||
|
</Card>
|
||
|
</Badge.Ribbon>
|
||
|
</>
|
||
|
);
|
||
|
|
||
|
export default App;
|