Forms & inputs

Components

Component

An accessible on/off switch (role="switch" with aria-checked) and a SwitchField that pairs it with a clickable label and a description through aria-labelledby and aria-describedby. Controlled or uncontrolled, two sizes, disabled state, a reduced-motion-aware thumb, and a hidden input so it submits with forms like a checkbox.

Forms & inputs · Chomodo Studio 0 likes 0 installs
Component

A one-time code input split into boxes. Typing advances, Backspace steps back, arrow keys, Home and End move between boxes, and pasting or SMS autofill spreads the whole code. Numeric or alphanumeric, optional visual grouping such as 3 + 3, one group label for screen readers, error and hint text, onComplete, and a hidden input for form submission.

Forms & inputs · Chomodo Studio 0 likes 0 installs
Block

An account settings page in labelled sections that sit in two columns on wide screens and stack on small ones. The profile form has a local photo preview, name, email, username, time zone and a bio with a character count; it tracks unsaved changes, validates inline with focus on the first error, and shows saving and saved states. Notification rows use accessible switches (one locked on), and the danger zone deletes only after the workspace name is typed in a focus-trapped confirm dialog. Switch and SettingsSection are exported.

Forms & inputs · Chomodo Studio 0 likes 0 installs
Component

A labelled text input with hint text, an error message wired through aria-describedby and aria-invalid, an optional leading icon or prefix, and a trailing slot for units, keyboard hints or a small TextFieldButton (for example show password). Three sizes, a disabled state, forwarded ref, and clicks on the padding focus the input.

Forms & inputs · Chomodo Studio 0 likes 0 installs
Component

A drag-and-drop file area with a keyboard-reachable browse button backed by a native file input. Validates type (accept rules also apply to dropped files), size and count, explains rejected files, skips duplicates, and lists chosen files with an icon, size and a remove button that keeps keyboard focus in place. Changes are announced to screen readers. It only collects files; uploading is left to you.

Forms & inputs · Chomodo Studio 0 likes 0 installs
Component

A month calendar for single dates or date ranges where selection feels continuous. In single mode a filled pill glides from the old day to the new one; in range mode the first click sets the start, hovering previews the band across the days in between and the second click sets the end. Months slide in the direction you move and today has a thin ring. A preset rail (Today, Last 7 days, This month, Next weekend or your own) sits beside the grid in wide containers and turns into chips above it in narrow ones, and a second month appears on its own when there is room. Supports min and max, a disabled(date) callback, per-day annotations such as dots or prices, any week start and Intl month and weekday names. Keyboard: arrows by day or week, PageUp/PageDown by month (Shift for a year), Home/End for the week, Enter to select; the range is also described in text.

Forms & inputs · Chomodo Studio 0 likes 0 installs
Component

A searchable single select built on the ARIA 1.2 combobox and listbox pattern. Type to filter (accent-insensitive, matching labels, descriptions and keywords, with the match highlighted), use the arrow keys, Enter to choose and Escape to close; clicking outside also closes it. Supports icons, descriptions and disabled options, an empty state, an optional clear button, a result count for screen readers and a hidden input for forms.

Forms & inputs · Chomodo Studio 0 likes 1 installs