Motion-first React components built on ui-sdk, with docs your coding agent can read and controls an agent in your app can use.
Every switcher’s crossover. Under reduced motion, or in a browser without view transitions, the theme changes at once. Press each to see it.
A ThemeToggle in the header flips between light and dark, and the User menu offers the device’s own as well, through UserMenuTheme. Both stay in step.
iconOnly drops the labels, for a footer or a toolbar. Each segment keeps its name for a screen reader.
The toggle’s icon: library icons that roll, as a Button’s icons do, or a drawn eclipse or dial. Press each to see it.
System, light and dark side by side, for a settings page. Name it with aria-labelledby.
ui-sdk's Time input: a time typed one segment at a time on the locale's clock, where one highlight glides between the segments and each number rolls to its new value, as in the Date input.
Hold the value with value and onValueChange; a value set from outside rolls each number the way it went.
Type the time, or step each segment with the arrow keys: the highlight follows you and each number rolls to its new value, as in the Date input.
granularity='second' adds a seconds segment, and the value becomes HH:mm:ss. granularity='hour' leaves the minutes out, and the value is HH:00.
hourCycle sets a 12-hour or a 24-hour clock whatever the locale; the value is a 24-hour time either way.
locale sets the clock, the order and the names of AM and PM; without it, the field follows the browser’s language.
A time outside min and max shows as invalid, and a form won’t submit it.
Events in order, such as an activity feed, an order’s steps or a changelog, each with a marker (an icon or an avatar, or a mark of its status) and a line to the next. New events fade in while the rest glide to make room, and a step’s line fills along its length as it completes. A split variant centres the rail, with an aside such as a date on the other side, and a track variant lays the steps across a thick bar that fills to a marker travelling between them, captioned with the latest event, and runs down the page in a narrow container.
An issue’s activity, with an avatar or an icon as each marker. Comment: the new event fades in at the top, and Undo takes it away again.
A marker holds an icon, such as a spinner on the step running now. Redeploy: each icon crossfades to a tick as its step completes.
variant="split" centres the rail and puts each TimelineAside on its other side. Below 28rem wide, the aside goes above the title.
A roadmap: the aside holds the quarter, and the steps fill as they ship.
status makes each event a step. Next step: the line out of the current one fills, then the next marker lights.
variant="track" lays the steps across a bar from 42rem wide, and down it below that. A TimelineProgress marks where things are, half way past the current step, with what last happened.
Toasts in the bottom corner, each one open in a column, or stacked in a deck that spreads on hover. A new one arrives from the screen edge while the others make room, and a promise turns its toast from loading into the result in place.
With variant="deck" they stack behind the newest one, and hover or focus spreads them into a list.
Each toast stays open in a column in the corner, and a new one pushes the others up. In an app, one Toaster goes in the root layout, and toast() raises a toast from anywhere.
One toast shows the work while it runs and turns into its result in place.
A button that stays pressed until it is pressed again, such as a star or a bold button, alone or joined in a Toggle group. Pressed, it fills and its icon can roll to another; it never changes size.
Own the value to set it from elsewhere, such as a button that clears every filter.
A button that stays pressed until it is pressed again. Off it is quiet; pressed it fills, at the same size, and a ToggleIcon rolls to its pressed icon. An icon-only toggle needs an aria-label that names what it does, which stays the same pressed or not.
The default: pressing one releases the other. To keep one always pressed, as a view must be, ignore the empty value pressing the pressed one sends.
multiple lets any number be pressed. An icon size makes the items square; name each one with aria-label.
The Button's square sizes for an icon alone, icon-sm, icon and icon-lg. A toggle with a label takes sm, default or lg.
orientation="vertical" stacks the items, with their labels along the start edge.
Text with tokens in it, such as a message that mentions people and attaches files. A token is one piece: the caret steps over it, Backspace removes it, and undo, copy and paste keep it whole. It scales in and out of the text, shows a spinner while it loads, and a Trigger menu inside it suggests tokens as you type.
A reply that mentions people and attaches files. Type @ for suggestions from a Trigger menu inside it; the buttons insert at the caret through its controller.
In a Field, its label names the field and an invalid field marks it. name sends the value in the codec’s text, such as @Maya Chen.
A token’s status: pending shows a spinner after 200ms, and unresolved a dashed edge until someone says which one it is.
readOnly keeps the text and its tokens as they are; they can still be selected and copied.
With submitShortcut="mod+enter", Enter starts a new line and ⌘ Enter or Ctrl Enter calls onSubmit.
tokenDeletion sets what Backspace does beside a token: removes it, selects it first, or turns it back into its text.
Buttons, toggles, groups, menus and a field in one row that Tab reaches once and the arrow keys move through. Each item is the Kino control it names, drawn and moving as it does alone.
A Toggle group, a group of buttons, a toggle, a menu and a field in one row. Each looks and moves as it does on its own.
A disabled button stays in the arrow keys’ path, so it can be found and read out. A loading button shows its spinner as a Button does.
orientation="vertical" stacks the items, and the up and down arrows move between them. Give a Toggle group inside the same orientation.
A menu’s trigger renders a ToolbarButton, so it joins the arrow keys. Escape closes the menu and puts focus back on it.
A label that grows out of its trigger. Tooltips in a group share one that slides from trigger to trigger, carrying its label.
It grows out of its trigger after a short wait, and folds back into it.
A button that can’t be used yet stays focusable with focusableWhenDisabled, so its tooltip can say why, by pointer and by keyboard.
Tooltips in a TooltipGroup share one label, which slides from trigger to trigger.
Pick where it opens with side; it moves when that side has no room.
The thin track and fill that Slider, Progress and Meter share, with the label and value above them, so a value reads the same way in all three.