mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-21 21:28:09 +08:00
26 lines
493 B
Markdown
26 lines
493 B
Markdown
|
---
|
||
|
category: Components
|
||
|
type: Data Display
|
||
|
title: Empty
|
||
|
cols: 1
|
||
|
---
|
||
|
|
||
|
Empty state placeholder.
|
||
|
|
||
|
## When To Use
|
||
|
|
||
|
When there is no data provided, display for friendly tips.
|
||
|
|
||
|
## API
|
||
|
|
||
|
```jsx
|
||
|
<Empty>
|
||
|
<Button>Create</Button>
|
||
|
</Empty>
|
||
|
```
|
||
|
|
||
|
| Property | Description | Type | Default |
|
||
|
| -------- | ----------- | ---- | ------- |
|
||
|
| description | Customize description | string \| ReactNode | - |
|
||
|
| image | Customize image. Will tread as image url when string provided | string \| ReactNode | false |
|