Form Components Showcase
New components use SvelteKit remote forms. Legacy components remain for fields not yet migrated.
New (Remote Forms)
Fields are required by default — a red star shows on the label. Add the optional shorthand to drop the star. When a field has no label the cue moves to
the placeholder, which is prefixed with (Required) or (Optional).
The “(optional)” examples below use optional.
TextField
A basic text input field
Standalone (no form) — bind:value + schema + onInput
Minimum 3 characters
value: (empty)
EmailField
An email input field
Standalone (no form) — bind:value + schema
Invalid email
value: (empty)
PasswordField
A password input field
Standalone (no form) — bind:value
length: 0
NumberField
A number input field
Standalone (no form) — bind:value
value: (empty)
DateField
A date input field
Standalone (no form) — bind:value
value: (empty)
DateRangeField
A start/end date range field
Standalone (no form) — bind:startValue / bind:endValue
(empty) → (empty)
TimeField
A time input field
Standalone (no form) — bind:value
value: (empty)
CheckboxField
A checkbox field for boolean values
Standalone (no form) — bind:checked + onChange
checkbox: false · switch: false
HexColorField
A hex color picker input
Standalone (no form) — bind:value
value: (empty)
MessageField
A textarea field with height lock feature
Standalone (no form) — bind:value + schema
Minimum 10 characters
length: 0
PinField
A 6-digit PIN input for 2FA verification
Standalone (no form) — bind:value
value: (empty)
SelectField
A single-select field (wraps ui/Select)
Standalone (no form) — bind:value + onchange
value: (none)
SliderField
A range slider (single or dual-thumb) styled like the switch
Standalone (no form) — single — bind:value + onChange
value: 25
Standalone (no form) — range — bind:value=[low, high]
range: 20 – 80
FileField
A file upload field with button and drag-and-drop variants
Standalone (no form) — onSelect + schema
Select at least one file
selected: (none)
Form
A complete form using remote functions with success/error toasts