Skip to content

EmptyState

A placeholder for an empty data or content area.

No projects

Create a project to start tracking work.
<EmptyState
description="Create a project to start tracking work."
illustration={<Inbox />}
title="No projects"
/>

No projects

<EmptyState
description={undefined}
illustration={<Inbox />}
title="No projects"
/>

No projects

Create a project to start tracking work.
<EmptyState
description="Create a project to start tracking work."
illustration={undefined}
title="No projects"
/>

No projects

Create a project to start tracking work.
<EmptyState
description="Create a project to start tracking work."
illustration={<Inbox />}
title="No projects"
actions={<Button label="Create project" variant="primary" />}
/>

No projects

Create a project to start tracking work.
<EmptyState
description="Create a project to start tracking work."
illustration={<Inbox />}
title="No projects"
actions={( <> <Button label="Create project" variant="primary" /> <Button label="Import" variant="secondary" /> </> )}
/>

No projects

Create a project to start tracking work.
<EmptyState
description="Create a project to start tracking work."
illustration={<Inbox />}
title="No projects"
isCompact
/>

No projects

Create a project to start tracking work.
<EmptyState
description="Create a project to start tracking work."
illustration={<Inbox />}
title="No projects"
actions={( <> <Button label="Create project" variant="primary" /> <Button label="Import" variant="secondary" /> </> )}
isCompact
/>

No projects

Create a project to start tracking work.
<EmptyState
description="Create a project to start tracking work."
illustration={<Inbox />}
title="No projects"
headingLevel={2}
/>

A placeholder for an empty data or content area.

PropTypeDefaultDescription
actionsReactNodeAction controls rendered below the text.
classNamestringAdditional CSS class names applied to the root element.
data-testidstringTest ID applied to the root element.
descriptionstringSupporting text.
headingLevel1 | 2 | 3 | 4 | 5 | 64Semantic heading level for the title.
illustrationReactNodeDecorative illustration or large icon rendered above the title.
isCompactbooleanfalseWhether to use tighter spacing for constrained areas.
refRef<HTMLDivElement>Ref forwarded to the root element.
styleCSSPropertiesInline styles applied to the root element.
title*stringPrimary empty-state message.