ant-design/components/card/demo/meta.tsx
JiaQi 1688d5995f
chore: Update random image sources (#41704)
* chore: update demo

* chore: update test case

* chore: update snap
2023-04-08 21:01:51 +08:00

31 lines
728 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://xsgames.co/randomusers/avatar.php?g=pixel" />}
title="Card title"
description="This is the description"
/>
</Card>
);
export default App;