ant-design/components/card/demo/meta.tsx
afc163 023f3ec719
demo: xsgames.co/randomusers => dicebear.com (#47028)
* demo: xsgames.co/randomusers => dicebear.com

* chore: update snapshot

* chore: update snapshot

* chore: update snapshot

* chore: update snapshot

* chore: update snapshot
2024-01-18 17:18:40 +08:00

31 lines
726 B
TypeScript

import React from 'react';
import { EditOutlined, EllipsisOutlined, SettingOutlined } from '@ant-design/icons';
import { Avatar, Card } from 'antd';
const { Meta } = Card;
const App: React.FC = () => (
<Card
style={{ width: 300 }}
cover={
<img
alt="example"
src="https://gw.alipayobjects.com/zos/rmsportal/JiqGstEfoWAOHiTxclqi.png"
/>
}
actions={[
<SettingOutlined key="setting" />,
<EditOutlined key="edit" />,
<EllipsisOutlined key="ellipsis" />,
]}
>
<Meta
avatar={<Avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=8" />}
title="Card title"
description="This is the description"
/>
</Card>
);
export default App;