UI Interface
Form elements
Every input pattern the template ships with: fields, selects, toggles, uploads, validation and two complete forms. Open the Code tab on any section to copy the markup.
Text inputs
Plain sx-input fields plus the fx-box wrapper in three sizes.
Default 36px field using the kit class.
Icons, addons and prefix / suffix
Leading icons, attached addons, inline prefix and suffix text, and a password reveal.
Floating label
Pure CSS: the label lifts on focus or when the field has a value (needs placeholder=" ").
Textarea with counter
The counter warns at 85% and turns red past the limit.
Select and custom dropdown
Native select for simple lists; a keyboard-friendly listbox when options need descriptions.
- AdminFull access and billing
- EditorCreate and edit content
- ViewerRead-only access
Multi-select with chips
Pick several options; selections appear as removable chips.
- Design
- Engineering
- Marketing
- Support
- Sales
Checkboxes and radios
Includes checked, indeterminate (select-all), disabled and selectable card options.
Switches
Real checkboxes with role="switch"; the status text follows the state.
Weekly digest and billing alerts
Require a code at sign-in
Locked by your administrator
Range slider
Native range inputs with a value tooltip that follows the thumb, stepped ticks and a dual-handle price range.
File upload dropzone
Click, press Enter or drop files; the preview list shows size and a progress bar. Nothing leaves the browser.
Date and time inputs
Native pickers keep mobile keyboards and accessibility intact; the dark scheme is applied automatically.
OTP input
Auto-advance, backspace, arrow keys and paste. Try the demo code 482916.
Tags input
Press Enter or comma to add, Backspace to remove the last tag. Maximum six.
2 of 6 labels used
Search with suggestions
Filters as you type with the match highlighted. Arrow keys move through results, Enter picks one.
- Northwind Traders
- Northern Lights Co.
- Invoice INV-2048
- Invoice INV-2051
- Redwood onboarding
- Avery Collins
- Marcus Reyes
- No matches found
Input states
Tab into the first field to see the focus ring; the rest are static state examples.
Enter a complete email address.
Workspace URL is available.
Live validation
Validates on input and blur using native constraints; the submit button enables once everything passes.
Input groups
Compose buttons, selects and inputs into a single control.
Sign-up form
A complete form with required fields, plan cards, consent and inline errors on submit.
Multi-step form
Each step validates before moving on; the last step summarises your answers.
Usage tips and accessibility
Small habits that keep forms usable for everyone.
- Always pair an input with a visible
<label for>; placeholders are hints, not labels. - Keep native types (
email,tel,date) so mobile keyboards and autofill work. - Show errors next to the field, and describe how to fix them rather than only what went wrong.
- Use
fx-bareinsidefx-boxso one border and focus ring wrap icons, addons and the input.
- Link messages with
aria-describedbyand setaria-invalid="true"on failing fields. - Custom dropdowns expose
role="listbox"and respond to arrow keys, Enter and Escape. - Never rely on color alone: states carry an icon and a message.
- Switches are real checkboxes with
role="switch"and keep a 22px minimum target with the label clickable.