Axon 911 Frontend DocsAxon 911 Frontend Docs
Axon 911 Frontend Docs
    Loading navigation…
U
User
Switch to light mode
  1. Primitives
  2. Empty Text
  3. API and Development

Empty text

API and Development

View SourceOpens in a new tabSubmit IssueOpens in a new tab
EmptyText renders an em dash by default with aria-label from the required label prop, so empty table cells and metadata fields stay perceivable. Inherits TextProps picks: type, color, asSpan, and optional children to override the glyph.
Props
NameTypeDefaultDescription
labelLocalizedMessage—Accessible name announced in place of the visible placeholder, such as "No phone number".
as"span" | "p"—Element to render. Defaults to span.
childrenReactNode—Visible placeholder. Omit it for an em dash.
classNamestring—Classes appended after the generated classes. Put overrides in @layer chroma.overrides.
foregroundForeground.Default | Foreground.Subtle | Foreground.Disabled—Foreground color. Defaults to default.
idstring—Element id.
refRef<HTMLElement>—Ref to the rendered element.
typeTextType.Subtitle | TextType.SubtitleMedium | TextType.BodyLarge | TextType.BodyLargeEmphasis | TextType.BodyMedium | TextType.BodyMediumEmphasis | TextType.Label | TextType.Caption | TextType.CaptionEmphasis | TextType.Code1 | TextType.Code2—Chroma typography role. Defaults to body medium (13px).
Storybook
Interactive examples and edge cases for this component are in Storybook.
DefaultOpens in a new tab
Default
Custom children
In DataList
In DataList with custom labels
List-level emptyLabel fallback
Previous
Empty text / Usage
Next
Empty text / Accessibility
On this page
Props
Storybook
Default
Custom children
In DataList
In DataList with custom labels
List-level emptyLabel fallback