Type Alias: ScrollingTroikaTextViewOptions
ScrollingTroikaTextViewOptions =
ViewOptions&object
Defined in: src/ui/components/ScrollingTroikaTextView.ts:21
A high-quality scrolling text view that uses Troika for SDF text
rendering and a VerticalPager for clipping and scrolling. This component is
ideal for displaying logs, chat histories, or other long-form text content
that requires crisp rendering and smooth scrolling.
It is built by composing three key components:
- A
TextViewto render the actual text content. - A
TextScrollerStateto manage the animation and state of the scroll position. - A
VerticalPagerto clip theTextViewand create the visible scroll window.
Type Declaration
fontSize?
optionalfontSize:number
scrollerState?
optionalscrollerState:TextScrollerState
text?
optionaltext:string
textAlign?
optionaltextAlign:"left"|"right"|"center"