Empty
Empty state placeholder.
When To Use
- When there is no data provided, display for friendly tips.
- User tutorial to create something in fresh new situation.
Examples
Empty API#
| Property | Description | Type | Default Value |
|---|---|---|---|
| ImageStyle | ParameterStyle for the wrapper of the image. Always used regardless of image type. | String | -- |
| Small | ParameterUse small variant of Empty | Boolean | -- |
| Simple | ParameterUse simple variant of Empty. Changes image as well. | Boolean | -- |
| ChildContent | ParameterContent displayed after the empty view | RenderFragment | -- |
| Description | ParameterLocale configuration for the empty view | OneOf<String, Boolean?> | No Data (in current locale) |
| DescriptionTemplate | ParameterDescription content for the view. Takes priority over AntDesign.Empty.Description |
RenderFragment | -- |
| Image | ParameterImage URL for view. Takes priority over AntDesign.Empty.Simple |
String | -- |
| ImageTemplate | ParameterImage content for empty view. Takes priority over AntDesign.Empty.Image and AntDesign.Empty.Simple |
RenderFragment | -- |
| Id | ParameterID for the component's HTML | String | Uniquely Generated ID |
| Class | ParameterSpecifies one or more class names for an DOM element. | String | -- |
| Style | ParameterSpecifies an inline style for a DOM element. | String | -- |
| RefBack | ParameterA ForwardRef instance. You can get a reference to the internal DOM by using AntDesign.ForwardRef.Current. |
ForwardRef | -- |