Components

Components

Component

Adds friction to risky actions in two modes. Slide: drag a round knob along a pill track that fills behind it; letting go before 90% springs it back, reaching the end locks it with a check and a green track. Hold: press and hold a button whose background fills over a set time and drains back at double speed if released early. A tick ruler under both lights segment by segment. onConfirm may return a promise, which shows a spinner until it settles and then success or an inline error with Retry. An optional Undo appears for a set window, after which it resets or stays done. The slider works with arrow keys, End or Enter and Escape, the hold button with Space or Enter, touch works through pointer capture, the result is announced, and reduced motion swaps the spring for a snap.

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

A settings card listing every device signed in to an account, with this device pinned first, an 'Online' dot or a live relative 'Seen' time, and the approximate place. Each row signs out on its own: a spinner appears only if the request takes longer than 150ms, the row collapses and fades on success, and stays with an inline error and Retry on failure. 'Sign out other devices' opens a small confirm popover (focus on Confirm, Escape to cancel) and the rows fold away in a quick stagger. Sessions from a new place or first seen today carry a 'New' or 'Unrecognised' tag with a 'Not you?' link, and a footer sums up the device count and the latest sign-in. Includes skeleton rows, per-device button names, focus that moves to the next row after a removal and polite announcements.

Authentication · Chomodo Studio 0 likes 0 installs
Block

An application layout with a sidebar and a top bar. The sidebar has a workspace switcher, grouped navigation with badges and an optional footer, and collapses to icons with label tips (Ctrl/Cmd+B, remembered in localStorage). The top bar holds the page title, a search field (Ctrl/Cmd+K), your action buttons and an account menu. Below 1024px the sidebar opens as a drawer with focus trapping, Escape to close and scroll lock.

Dashboards · Chomodo Studio 0 likes 0 installs
Block

A multi-column site footer: logo and one line about the product, a newsletter form with client-side validation and a confirmation, icon links with accessible names, four link groups in a labelled navigation, and a bottom bar with copyright, legal links and a status indicator. The brand name returns across the full width at the bottom. Link groups fold from four columns to two on phones; everything is passed as props.

Navigation · 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 floating toolbar that rises from the bottom (or top) of a list when items are selected and sinks away when the selection clears. It shows a rolling selected count, a basket of removable chips with a '+N' overflow that opens a scrollable list, action buttons and Clear. Destructive actions confirm inline ('Delete 6? Yes / No', focus on No) without a modal, and a finished action leaves an Undo pill in the same bar for a few seconds. Ships a useSelection hook with toggle, shift-click ranges, select all, clear and isSelected. Set a threshold, place it inside the parent or float it over the page; Escape clears, count changes are announced politely and focus is never taken when the bar appears.

Tables & data · Chomodo Studio 0 likes 0 installs