Skip to main content

Widgets

The widgets cover text entry, choices, filesystem browsing and gates. Every field of the form opens its widget in an editor, and the same widgets also run standalone (see playground/02-widgets-*). Widgets pull their glyphs and colors from the theme, so each one is shown in all four display modes.

All widgets, one after anotherAll widgets, one after another

Text entry

  • Calendar - a month calendar returning an ISO date.
  • Number - integer input with optional bounds and step keys.
  • Password - masked input with optional reveal and confirm.
  • Template - fill the named slots of a fixed shape.
  • Text - single-line input, with optional ghost-text autocomplete.
  • Textarea - multi-line input with optional external-editor handoff.

Choices

  • Option groups - headings, separators and disabled options.
  • Rating - a graded answer picked from a scale of points.
  • Reorder - rank a list by moving items into order.
  • Search - single or multiple choice with a filter line.
  • Select - single or multiple choice from a list.
  • Suggest - free text with autocomplete over a fixed set.

Filesystem

  • FilePicker - browse for one path, or several with ->multiple().

Toggles, gates and cards

  • Confirm - a Yes/No toggle.
  • Note - a read-only informational card that collects nothing.
  • Pause - an acknowledgment gate.
  • Progress - a row that runs work, showing a bar or spinner.
  • Toggle - an inline switch between two labeled values.