Skip to content
Preview

FadeText

forms
readonly (ReactNode | { cut: ReactNode })[]
Shorter forms, longest first: the first that fits shows; a { cut } form shows a shortened fragment. Default: an address's segments or a path's parts; prose fills its box (ARC-1000).
last
boolean
Default: true
false: text follows on its row, so a shortened form ends on a content word.
lines
number
Maximum lines before truncation.
full
"tooltip" | false
Default: "tooltip"
tooltip: the full text while cut or shortened, on hover and on keyboard focus of the text or of the control that holds it, leaving with the focus; below the text, above where there is no room below, never over a neighbour beside it (a list row's own text, beside the row). false beside a hover card.
onForm
(form: number) => void
Told the form it shows (0: the whole text).
rootStyle
FadeTextStyle
childrenrequired
ReactNode
The full text, always the accessible name.

Rest props go to <span> props.

State machine

PreviewA short chat title fits in its row.
Plan the deploy