Skip to content

Empty State

Design guidelines

An empty state occurs when an element has no content to display. Depending on the context, it tells the user what is missing, why it is missing, and can offer guidance on next steps or alternative actions.

HTML
React
Angular
Create tables and figures Learn about tables and figures
<certara-empty-state headline="Create your first tables and figures" description="Get started by creating your first table or figure" img-height="200" img-width="175">
<div slot="actions">
<certara-button>
<certara-icon icon="plus"></certara-icon>
Create tables and figures
</certara-button>
<certara-button variant="link" href="https://help.certara.net" target="_blank" right-icon="arrow-up-right-from-square">
Learn about tables and figures
</certara-button>
</div>
</certara-empty-state>
import { CertaraButton, CertaraEmptyState, CertaraIcon } from '@certara/certara-ui-react';
<CertaraEmptyState headline="Create your first tables and figures" description="Get started by creating your first table or figure" imgHeight={200} imgWidth={175}>
<div slot="actions">
<CertaraButton>
<CertaraIcon icon="plus" />
Create tables and figures
</CertaraButton>
<CertaraButton variant="link" href="https://help.certara.net" target="_blank" rightIcon="arrow-up-right-from-square">
Learn about tables and figures
</CertaraButton>
</div>
</CertaraEmptyState>
// In your module (e.g., app.module.ts)
import { CertaraUiAngularModule } from '@certara/certara-ui-angular';
@NgModule({
imports: [CertaraUiAngularModule]
})
// In your template:
<certara-empty-state headline="Create your first tables and figures" description="Get started by creating your first table or figure" img-height="200" img-width="175">
<div slot="actions">
<certara-button>
<certara-icon icon="plus"></certara-icon>
Create tables and figures
</certara-button>
<certara-button variant="link" href="https://help.certara.net" target="_blank" right-icon="arrow-up-right-from-square">
Learn about tables and figures
</certara-button>
</div>
</certara-empty-state>
<certara-empty-state headline="Using src prop" src="/assets/img/empty-states/welcome/user-access-assignment.svg">
</certara-empty-state>
import { CertaraEmptyState } from '@certara/certara-ui-react';
<CertaraEmptyState headline="Using src prop" src="/assets/img/empty-states/welcome/user-access-assignment.svg">
</CertaraEmptyState>
// In your module (e.g., app.module.ts)
import { CertaraUiAngularModule } from '@certara/certara-ui-angular';
@NgModule({
imports: [CertaraUiAngularModule]
})
// In your template:
<certara-empty-state headline="Using src prop" src="/assets/img/empty-states/welcome/user-access-assignment.svg">
</certara-empty-state>

description

Attributedescription
Typestring
Defaultundefined
Requiredfalse
DescriptionOutputs text below headline

headingLevel

Attributeheading-level
Type1 | 2 | 3 | 4 | 5 | 6
Default2
Requiredfalse
DescriptionHeading element of the headline, from 1 to 6. Sets only the element, for the page’s document outline. Defaults to 2.

headingSize

Attributeheading-size
Type"lg" | "md"
Defaultundefined
Requiredfalse
DescriptionVisual scale of the headline. lg uses the large heading style. It doesn’t change the heading element. Defaults to 'md'.

headline

Attributeheadline
Typestring
Defaultundefined
Requiredfalse
DescriptionText of the headline. Renders inside the heading set by headingLevel.

horizontal

Attributehorizontal
Typeboolean
Defaultfalse
Requiredfalse
DescriptionToggles horizontal view

illustration

Attributeillustration
Type"dataset" | "tfl" | "welcome"
Defaultundefined
Requiredfalse
DescriptionBuilt-in illustration, by name: 'welcome', 'tfl', or 'dataset'. Shown when src is not set. Defaults to 'welcome'.

img

Attributeimg
Typestring
Defaultundefined
Requiredfalse
DescriptionImage name or path. If a simple name is provided (e.g., ‘welcome’), it will be resolved to the CDN path. Full URLs or paths starting with ’/’, ’.’, or ‘http’ will be used as-is. DEPRECATED. Use illustration for a built-in name or src for a URL or path instead. Will be removed in the next major version.

imgHeight

Attributeimg-height
Typenumber
Defaultundefined
Requiredfalse
DescriptionHeight of image

imgWidth

Attributeimg-width
Typenumber
Defaultundefined
Requiredfalse
DescriptionWidth of image

size

Attributesize
Type"lg" | "md"
Defaultundefined
Requiredfalse
DescriptionVisual scale of the headline. lg uses the large heading style. It doesn’t change the heading element. DEPRECATED. Use headingSize instead. Will be removed in the next major version.

src

Attributesrc
Typestring
Defaultundefined
Requiredfalse
DescriptionURL or path of the image, used as-is with no prefix checks. When set, it takes priority over illustration.

width

Attributewidth
Typestring
Defaultundefined
Requiredfalse
DescriptionOptional width of the empty state. Accepts a value of 30rem, 370px, or any valid CSS size value.

There are no events available for this component

There are no public methods available for this component

NameDescription
actionsButtons, links, more content
description-slotHTML slot for the description. Outputs text below headline.
headline-slotHTML slot for the headline. Renders inside the heading set by headingLevel.

An empty state occurs when an element has no content to display. Depending on the context, it tells the user what is missing, why it is missing, and can offer guidance on next steps or alternative actions.

Create tables and figures Learn about tables and figures
"dad" is not here
  • Check your spelling
  • Try different keywords
  • Try using fewer words
  • Primary Learn more
    • Display empty states in the space where the content would otherwise be shown.
    • Can apply to full pages, page sections, cards, dashboards, tables, and side panels.
    • Empty states can include:
    • Image
    • Title
    • Description
    • Buttons
    • Links
    • The size of the image is relative to the size of the container.
    • If the container is very small, limit the empty state to text only.

    Empty states can be caused by a variety of reasons. Some include:

    • No data existing due to first time use of a feature.
    • Access issues dues to permissions or other system configurations.
    • User actions like search or filtering that returns no results, or the successful completion of a workflow.

    Empty states should be helpful and engaging for the user.

    • Clearly explain the reason for the empty state.
    • Use positive or neutral language.
    • Let the user know what action, if any, they can take.
    • Add further explanation for the empty state if necessary.
    • Labels should match the action described in the description.
    • Images used on empty states do not need to be recognized by screen readers and other assistive technologies.
    • Choose the title’s heading level to fit the page outline. heading-size changes how the title looks, not its heading level.
    • For more information, see our accessibility guidelines.

    Illustrations can be downloaded in our image resources.

    View component in Figma