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.
  • 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.
  • 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 and gates

  • Confirm - a Yes/No toggle.
  • Pause - an acknowledgment gate.
  • Toggle - an inline switch between two labeled values.