Empty State

Displays an empty state with optional icon and title.

No items found

PropTypeDefault
actionReact.ReactNode
childrenReact.ReactNode
iconReact.ElementType
minHeightnumber
size"1" | "2""2"
subtitlestring | React.ReactElement
titlestring | React.ReactElement

This component uses Flex internally. View source

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 title prop to display a basic empty state message.

No results found

Use the icon prop to display an icon above the title.

No users have been created

Use the subtitle prop to display a subtitle below the title.

No users

There are no users belonging to this organization.

You can also customize the subtitle by passing a React element.

No users

There are no users belonging to the SuperTeam organization.

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.

No users have been created

No users have been created

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.

Not permitted to perform this action

Please contact your administrator.

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.

No users have been created

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.

No origins match the term workos.com.

Edit your search term to find a match.