Skip to main content

Module widgets

Module widgets 

Source
Expand description

Widget state types (list, table, input, select, etc.). Widget state types passed to Context widget methods.

Each interactive widget (text input, list, tabs, table, etc.) has a corresponding state struct defined here. Create the state once, then pass a &mut reference each frame.

Structs§

CalendarState
State for the calendar date picker widget.
CommandPaletteState
State for a command palette overlay.
ContextItem
Item in a context bar showing active context sources.
DirectoryTreeState
State for the directory tree widget.
FileEntry
A directory entry shown by FilePickerState.
FilePickerState
State for a file picker widget.
FormField
A single form field with label and validation.
FormState
State for a form with multiple fields.
ListState
State for a selectable list widget.
ModeState
Named mode system with independent screen stacks.
MultiSelectState
State for a multi-select list.
PaletteCommand
A single command entry in the palette.
RadioState
State for a radio button group.
RichLogEntry
A single entry in a RichLog.
RichLogState
State for the rich log viewer widget.
ScreenState
Navigation stack state for multi-screen apps.
ScrollState
State for a scrollable container.
SelectState
State for a dropdown select widget.
SpinnerState
State for an animated spinner widget.
StaticOutput
Accumulated static output lines for crate::run_static.
StreamingMarkdownState
State for a streaming markdown display.
StreamingTextState
State for a streaming text display.
TableState
State for a data table widget.
TabsState
State for a tab navigation widget.
TextInputState
State for a single-line text input widget.
TextareaState
State for a multi-line text area widget.
ToastMessage
A single toast notification message.
ToastState
State for toast notification display.
ToolApprovalState
State for a tool approval widget.
TreeNode
A node in a tree view.
TreeState
State for a hierarchical tree view widget.

Enums§

AlertLevel
Severity level for alert widgets.
ApprovalAction
Approval state for a tool call.
ButtonVariant
Visual variant for buttons.
GridColumn
Column specification for [Context::grid_with()].
ToastLevel
Severity level for a ToastMessage.
Trend
Direction indicator for stat widgets.