F
formdef
Array framearray-frameA formdef structure slot that frames every array: its items, a remove button beside each, an add button and the errors about the whole list.
Checkbox fieldcheckbox-fieldA formdef widget for a boolean, built on shadcn's Field and Checkbox, with its label beside the box.
Checkbox group fieldcheckbox-group-fieldA formdef widget for several choices among options, built on shadcn's FieldSet and Checkbox; values the options do not carry stay in the form.
Combobox fieldcombobox-fieldA formdef widget for one choice among many options, built on shadcn's Field and Combobox, filtered by what is typed.
Date fielddate-fieldA formdef widget for an ISO date string, built on shadcn's Calendar in a Popover; the day stays the day in every time zone.
Date range fielddate-range-fieldA formdef widget for a range of ISO date strings, built on shadcn's Calendar in a Popover.
Date and time fielddate-time-fieldA formdef widget for a local ISO date-time string, built on shadcn's Calendar in a Popover and a time input.
HeadingA formdef form component that titles the fields after it, as an h3 by default; the heading block kind of the catalog renders with it.
Multi combobox fieldmulti-combobox-fieldA formdef widget for several choices among many options, built on shadcn's Field and Combobox chips, filtered by what is typed.
NoticeA formdef form component that shows a note between fields, with an optional title, built on shadcn's Alert; the notice block kind of the catalog renders with it.
Number fieldnumber-fieldA formdef widget for optional number values, built on shadcn's Field and Input; an empty input is undefined.
Password fieldpassword-fieldA formdef widget for passwords, built on shadcn's Field and InputGroup, with a button that shows and hides the value.
Radio fieldradio-fieldA formdef widget for one choice among options, built on shadcn's FieldSet and RadioGroup, as a list or as cards.
RowA formdef structure slot that places its fields side by side once its own container has room.
SectionA formdef structure slot that renders a titled group as a fieldset, with an optional description.
Select fieldselect-fieldA formdef widget for one choice among options, built on shadcn's Field and Select; a value the options do not carry stays in the form.
StepperA formdef structure slot that frames a form of steps in one of four variants: circles, a rail, segments or a compact bar, with the current step under its heading and the buttons back and next.
Submit buttonsubmit-buttonA formdef form component that submits the form, is never disabled for an invalid form, and shows a spinner once a submit takes noticeably long.
Switch fieldswitch-fieldA formdef widget for a boolean, built on shadcn's Field and Switch, as a split row, a list row or a card.
Tags fieldtags-fieldA formdef widget for a list of free-text tags with optional suggestions, built on shadcn's Field and Combobox chips.
Text fieldtext-fieldA formdef widget for string values, built on shadcn's Field and Input, with optional addons in an input group.
Textarea fieldtextarea-fieldA formdef widget for longer string values, built on shadcn's Field and Textarea, with optional addons in an input group.