Skip to main content

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 TextView to render the actual text content.
  • A TextScrollerState to manage the animation and state of the scroll position.
  • A VerticalPager to clip the TextView and create the visible scroll window.

Type Declaration

fontSize?

optional fontSize: number

scrollerState?

optional scrollerState: TextScrollerState

text?

optional text: string

textAlign?

optional textAlign: "left" | "right" | "center"