Skip to main content

Module list

Module list 

Source
Expand description

Canonical list-row builders for TUI modals and command menus.

Call sites should not assemble InlineListItem { .. } literals directly. These helpers encode the shared visual contract: group headers, title · value · description rows, toned actions, and current/choice rows.

Wire types stay in vtcode_commons::ui_protocol (protocol layer); this module is the design-system factory that returns them.

Structs§

InlineListItem
A selectable item inside a list overlay.
InlineStatus
A short-lived status message shown inside a list modal (footer strip).

Enums§

InlineItemKind
Role of a list row, used by the renderer to pick emphasis and spacing.
InlineListSelection
Selection value returned from a list or wizard overlay.
InlineTone
Semantic tone for list badges, values, and modal status strips.

Functions§

action
Imperative row (Back, Reset, Refresh, Pick model, …) with an explicit tone.
choice
Selectable choice in a list (reasoning level, service tier, list entry).
current_choice
Choice row that is live/current (kept setting, active model).
group_divider
Full-width rule between option groups.
group_header
Section header: bold title with blank spacing above and below.
hint
Non-selectable dimmed note (never a group header).
setting
Title + optional accent value + dimmed description.