Skip to main content

FilePicker

FilePicker is an interactive filesystem browser. The user navigates directories, and when they press the select key the picker records the chosen path.

Quick start

Configuration

Selection detection

Key bindings


Paginator

Paginator is a lightweight page-navigation indicator. It renders either Arabic numerals (1/5) or dot characters (●○○○○).

Quick start

Dot style

List embeds a Paginator internally. You only need to use Paginator directly when building a custom paging UI outside of the List component.

Stopwatch

Stopwatch measures elapsed time and renders it in Go’s compact duration format (1h2m3s, 500ms).

Quick start

Methods


Timer

Timer counts down from a set duration and fires a TimeoutMessage when it reaches zero.

Quick start

Methods

TimeoutMessage is fired once when timeout reaches zero. Handle it in your update() to trigger any post-timer logic.

Cursor

Cursor is the blinking cursor block used internally by TextInput and Textarea. You can use it standalone in custom input components.

Modes

Focus and blur

Rendering


Help

Help renders a compact key binding legend. It integrates with any component that implements the KeyMap interface (such as List and Table).
KeyMap requires two methods:

Spinner and progress

Loading indicators and progress bars.

Components overview

Back to all components.