Text roll
import { TextRoll } from "@arcadia/ui";TextRoll
textrequired- string
- The line. When it changes, the old text leaves and the new one arrives by the motion.
motion- "roll" | "cascade" | "scramble"
- Default:
"roll" - How the new line arrives. All values crossfade in place. Default:
roll. wrap- boolean
- Default:
false - A label that may not fit its container wraps onto more lines, instead of one line cut at its edge.
rootStyle- RootStyle
- Typed StyleX override: where the line sits.
children- (text: string) => ReactNode
- Draws a line's visible text (default: the text itself): wrap it in a
Shimmerwhile the status is live.
Rest props go to HTMLAttributes<HTMLSpanElement>.
State machine
Reading the plan