Components/Multi-select

Multi-select

New

A scrollable checkbox list supporting multiple concurrent selections. Navigate with ↑↓/jk, toggle with Space/x, select all/none with a, and confirm with Enter.

Install the package

Every component ships in the single dart_tui package.

$dart pub add dart_tui
multi-select · dart_tui
Multi-select demo

MultiSelectModel

PropertyTypeDescription
itemsList<MultiSelectItem>Options; each has a label, value and selected flag.
titleStringHeading above the list.
heightintVisible rows before scrolling. Defaults to 10.
showStatusBarboolShow the 'N/Total selected' status bar.
wrapboolWrap the cursor at list boundaries.

Keybindings

↑ / k, ↓ / jMove cursor
space / xToggle item
aSelect all / none
enterConfirm selection

Related