Components

Components

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
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 list of team events grouped under sticky day headings (Today, Yesterday, then dates). Each event shows an initials avatar tinted from the theme's chart colours, an icon for its type, the actor, verb and target, optional detail such as a quoted comment, and a relative time that updates every minute. A load-more button shows a loading state while your async loader runs.

Dashboards · Chomodo Studio 0 likes 0 installs
Component

In-page alerts for info, success, warning and error messages, with a title, body, optional action buttons (InlineAlertAction) and an optional dismiss button. Errors and warnings use role="alert", info and success use role="status", and the role can be overridden for messages present on page load. Tinted for light and dark mode.

Alerts & toasts · Chomodo Studio 0 likes 0 installs
Component

A ToastProvider and useToast hook for stacked notifications. Toasts collapse into a deck and expand on hover or focus, auto-dismiss with timers that pause while hovered, focused or in a hidden tab, and can be updated in place (loading to success). Five variants plus default, optional action button, six positions, a limit on open toasts, and polite or assertive live-region announcements.

Alerts & toasts · Chomodo Studio 0 likes 0 installs
Block

An email and password sign-in card with generic Continue with buttons (passkey and SSO, lucide icons, no brand logos), a show or hide password toggle, remember me, a forgot password link and a link to sign up. Fields validate on blur and on submit with messages tied to each input, the first invalid field takes focus, and the button shows a loading state. onSubmit can return a message to show as a form error; the demo rejects the password wrong-password.

Authentication · Chomodo Studio 0 likes 0 installs
Component

A service health row: status dot, name and uptime percentage over thin day bars coloured operational, degraded, outage or maintenance. Bars show 90, 60 or 30 days depending on the container width. Hover, tap or arrow keys raise the focused bar and its neighbours and open a card with the date, uptime and incidents. Several services stack into a status block with a computed summary, a 30/60/90 range switch that tweens the percentage, a legend, skeleton loading and a compact mode. Outage and maintenance bars carry a pattern so state never relies on colour alone.

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