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.
Heading element of the headline, from 1 to 6. Sets only the element, for the page’s document outline. Defaults to 2.
headingSize
Attribute
heading-size
Type
"lg" | "md"
Default
undefined
Required
false
Description
Visual scale of the headline. lg uses the large heading style. It doesn’t change the heading element. Defaults to 'md'.
headline
Attribute
headline
Type
string
Default
undefined
Required
false
Description
Text of the headline. Renders inside the heading set by headingLevel.
horizontal
Attribute
horizontal
Type
boolean
Default
false
Required
false
Description
Toggles horizontal view
illustration
Attribute
illustration
Type
"dataset" | "tfl" | "welcome"
Default
undefined
Required
false
Description
Built-in illustration, by name: 'welcome', 'tfl', or 'dataset'. Shown when src is not set. Defaults to 'welcome'.
img
Attribute
img
Type
string
Default
undefined
Required
false
Description
Image 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
Attribute
img-height
Type
number
Default
undefined
Required
false
Description
Height of image
imgWidth
Attribute
img-width
Type
number
Default
undefined
Required
false
Description
Width of image
size
Attribute
size
Type
"lg" | "md"
Default
undefined
Required
false
Description
Visual 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
Attribute
src
Type
string
Default
undefined
Required
false
Description
URL or path of the image, used as-is with no prefix checks. When set, it takes priority over illustration.
width
Attribute
width
Type
string
Default
undefined
Required
false
Description
Optional width of the empty state. Accepts a value of 30rem, 370px, or any valid CSS size value.
HTML slot for the description. Outputs text below headline.
headline-slot
HTML 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.