Displays an empty state with optional icon and title.
This component is a wrapper around the Text component and applies default styling for the title based on the configuration of the Root component. It inherits all props from the Text component. View source
This component is a wrapper around the Text component and applies default styling for the subtitle based on the configuration of the Root component. It inherits all props from the Text component. View source
This component is a wrapper around the Button component and applies default styling for the action button based on the configuration of the Root component. It inherits all props from the Button component. View source
Use the subtitle prop to display a subtitle below the title.
You can also customize the subtitle by passing a React element.
We recommend using the EmptyState.Subtitle component and only making minor adjustments to the styling to avoid inconsistencies across the app.
Use the size prop to control the size of the empty state. Size 1 is reserved for smaller, more compact views (like a CardList), whereas Size 2 is the default used for empty tables.
Use the children prop to display additional text content below the title. This is useful for displaying additional information or instructions.
For actionable content such as buttons or links, use the action prop.
Use the action prop to display actionable content below the title, such as buttons. We recommend using the EmptyState.Action component to represent the action button for consistent styling.
In some cases you may want to customize the title for more granular control over the look and feel of the empty state. For example you may want only a portion of the title to be bold to place emphasis on it.
We recommend using the EmptyState.Title component and only making minor adjustments to the styling to avoid inconsistencies across the app.