ScrollView
layout
ScrollView: a height-bounded scrollable container
Terminal
$termuijs render scroll-view
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
| Prop | Type | Required | Description |
|---|---|---|---|
contentHeight | number | optional | Total height of content in rows |
showScrollbar | boolean | optional | Show scrollbar indicator on right edge |
scrollAccel | boolean | optional | Whether to use scroll acceleration |