Components

Components

Component

A button that runs a whole async action in place: idle, pending, success and error, without ever changing width, because every label is stacked invisibly in one grid cell. Labels crossfade upward between states and icons change with them: a ring spinner (or a determinate arc when progress is given), a check that draws itself and an X with a small shake. While pending a hairline bar runs along the bottom edge, and success briefly floods the button green before it eases back. It keeps focus throughout, is busy rather than disabled while pending, announces each state politely, and simply swaps icons when reduced motion is requested. A status prop can force any state.

Buttons · Chomodo Studio 0 likes 0 installs
Component

A Button with six variants (primary, secondary, outline, ghost, destructive, link) and four sizes including a square icon size. The loading state shows a spinner without changing the button's width, keeps focus on the button and sets aria-busy. Exports buttonVariants so links can share the same styles.

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