Skip to content

ScrollView

widgetslayout

ScrollView: a height-bounded scrollable container

Installation

$ bunx termuijs add scroll-view

Copies the source into src/components/scroll-view/ and installs @termuijs/core, @termuijs/widgets.

Usage

ts
import { ScrollView } from '@termuijs/widgets'
ts
new ScrollView(style: Partial<Style> = {}, opts: ScrollViewOptions = {})

API Reference

ScrollView

PropTypeRequiredDescription
contentHeightnumberoptionalTotal height of content in rows
showScrollbarbooleanoptionalShow scrollbar indicator on right edge
scrollAccelbooleanoptionalWhether to use scroll acceleration
#layout#scroll-view