Skip to main content

Module widgets

Module widgets 

Source
Expand description

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§

CommandPaletteState
State for a command palette overlay.
FormField
A single form field with label and validation.
FormState
State for a form with multiple fields.
ListState
State for a selectable list widget.
MultiSelectState
State for a multi-select list.
PaletteCommand
A single command entry in the palette.
RadioState
State for a radio button group.
ScrollState
State for a scrollable container.
SelectState
State for a dropdown select widget.
SpinnerState
State for an animated spinner widget.
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.
TreeNode
A node in a tree view.
TreeState
State for a hierarchical tree view widget.

Enums§

ButtonVariant
Visual variant for buttons.
ToastLevel
Severity level for a ToastMessage.