ant-design/components/card/demo/meta.tsx
Ritesh Makan 54d3a738f6
demo: Fix broken avatars (#40793)
* Update links from https://joeschmoe.io to https://joesch.moe

* updated snapshots
2023-02-19 14:20:01 +08:00

31 lines
708 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://joesch.moe/api/v1/random" />}
title="Card title"
description="This is the description"
/>
</Card>
);
export default App;