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
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
Block

A two-step appointment chooser. A week strip of day pills (weekday, date and a small count of open times) with previous and next week arrows sits above a grid of time slots for the chosen day, grouped into Morning, Afternoon and Evening. Unavailable slots are struck through and disabled. Picking a slot expands it in place into a confirm row ('Tue 18 Nov, 10:30 to 11:00 · Confirm') instead of a separate button. A time zone switch re-renders every label in the viewer's or the host's zone with Intl, and a 15/30/60 minute toggle regenerates the slots. Slots come from an async getSlots(date, duration) or a fixed map, with skeletons while a day loads, min and max dates and a jump to the next open day. The strip and each slot group are keyboard radiogroups, focus moves to Confirm after a choice, and the chosen time is announced. At phone width the strip shows five days and swipes.

Forms & inputs · Chomodo Studio 0 likes 0 installs