Accessibility copy (aria-label, aria-description, title) is LocalizedMessage.
Exports
TokenizedText, TokenizedTextSegmentKind, and the types TokenizedTextProps, TokenizedTextSegment, one segment type per kind, and TokenizedTextElement.
Props
Name
Type
Default
Description
segments
readonly TokenizedTextSegment[]
—
The body, in order. A structured value, never markup: nothing in it is parsed as HTML.
aria-description
LocalizedMessage
—
Extended description for assistive tech.
aria-label
LocalizedMessage | DisplayValue
—
Accessible name when the visible label is insufficient.
aria-placeholder
LocalizedMessage
—
Hint for an empty control.
as
"span" | "p"
—
Host tag. Defaults to span, so it sits inside a Message.
className
string
—
@deprecated Pass layout through enum props and shipped parts. Request a missing case via find-pattern.
data-align
undefined
—
—
data-checked
undefined
—
—
data-copy-status
undefined
—
—
data-dirty
undefined
—
—
data-disabled
undefined
—
—
data-dragging
undefined
—
—
data-ending-style
undefined
—
—
data-expanded
undefined
—
—
data-filled
undefined
—
—
data-focus-visible
undefined
—
—
data-focused
undefined
—
—
data-highlighted
undefined
—
—
data-hovered
undefined
—
—
data-indeterminate
undefined
—
—
data-instant
undefined
—
—
data-invalid
undefined
—
—
data-is-new
undefined
—
—
data-loading
undefined
—
—
data-nested
undefined
—
—
data-open
undefined
—
—
data-orientation
undefined
—
—
data-overflow
undefined
—
—
data-placeholder
undefined
—
—
data-popup-open
undefined
—
—
data-pressed
undefined
—
—
data-readonly
undefined
—
—
data-required
undefined
—
—
data-scrolling
undefined
—
—
data-selected
undefined
—
—
data-side
undefined
—
—
data-starting-style
undefined
—
—
data-touched
undefined
—
—
data-valid
undefined
—
—
data-variant
undefined
—
—
foreground
Foreground
—
Foreground color. Defaults to {@link Foreground.Inherit}, so a bubble keeps its own foreground.
redactionLabel
LocalizedMessage
—
Label for a redaction segment that has none of its own. A redaction with neither is an unnamed fill with no width,
so pass one whenever a body can hold a redaction.
ref
Ref<HTMLElement>
—
Ref to the root element.
title
LocalizedMessage | DisplayValue
—
Native tooltip; accessibility hint, not visible UI title text.
type
TextType
—
Typography role. Defaults to {@link TextType.Subtitle}, the Message body.
Storybook
Interactive examples and edge cases for this component are in Storybook.