ant-design/components/empty/demo/customize.tsx
thinkasany 9fcce8ffdc
feat: ConfigProvider support classNames and styles for Empty (#52208)
* feat: ConfigProvider support classNames and styles for Empty

* fix

* fix
2025-01-03 14:48:16 +08:00

18 lines
440 B
TypeScript

import React from 'react';
import { Button, Empty, Typography } from 'antd';
const App: React.FC = () => (
<Empty
image="https://gw.alipayobjects.com/zos/antfincdn/ZHrcdLPrvN/empty.svg"
styles={{ image: { height: 60 } }}
description={
<Typography.Text>
Customize <a href="#API">Description</a>
</Typography.Text>
}
>
<Button type="primary">Create Now</Button>
</Empty>
);
export default App;