Skip to content

scrollToTop

Scrolls the list to the top.

Example

ts
import { List } from "@monstermann/signals-tui";

const list = List.create({ lines: items, renderLine });

List.scrollToTop(list); // Scroll to beginning