mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 07:56:28 +08:00

* feat: rewrite component empty * refactor: use static variable * refactor: extraction function for component empty * docs: update docs and demo * feature: image add image style prop * docs: update doc of component empty * docs: add since comment to imageStyle prop * test: update snapshots * style: use number in style * docs: update docs of component empty * docs: update doc of component empty * test: fix test broken * docs: update docs for empty component * refactor: rewrite empty component * docs: update doc of component empty * doc: change image size
912 B
912 B
category | type | title | cols |
---|---|---|---|
Components | Data Display | Empty | 1 |
Empty state placeholder.
When To Use
When there is no data provided, display for friendly tips.
Built-in image
- Empty.PRESENTED_IMAGE_SIMPLE

- Empty.PRESENTED_IMAGE_DEFAULT

API
<Empty>
<Button>Create</Button>
</Empty>
Property | Description | Type | Default |
---|---|---|---|
description | Customize description | string | ReactNode | - |
imageStyle | style of image | CSSProperties | - |
image | Customize image. Will tread as image url when string provided. | string | ReactNode | Empty.PRESENTED_IMAGE_DEFAULT |