Motion-first React components built on ui-sdk, with docs your coding agent can read and controls an agent in your app can use.
Put SortableLists in a SortableGroup, each with an id and a label, and items move between them: drag a card to another column, or press Left and Right while the keys move it. accepts says which lists take which items: here, Done takes a card only once it is in review.
A press on a button, a link, a checkbox or any other control inside an item does what it says; a press anywhere else drags.
Give it the order as value and keep the new one from onValueChange, which runs once an item is dropped in a new place. Drag a row from anywhere, or focus its handle and press Space.
Without value, the list keeps its own order. Items of any width wrap and glide across lines.
disabled keeps the order as it is: nothing drags, and the handles go.
layout='grid' puts items in rows that wrap, laid out by className; the arrow keys move a picked-up item along a line and between lines.
Dragged to the edge of a box that scrolls, the box scrolls; picked up by keyboard, the item stays in view as it moves.
Items added or removed take their place in the order, and the others glide to make room or close the gap.
A trend small enough to sit beside a value, in a table row or a stat card: a line, an area or bars, with no axes and an optional end dot. The point under the pointer or the keys stays bright while the rest steps back, and new values move every point from where it is.
The value above reads the day under the pointer or the keys through onActiveIndexChange, and a new range moves every point from where it is.
Sparklines that share one activeIndex light the same day in every row, and the counts beside them read that day.
A ChartTooltip inside reads the hour under the pointer, with its change since the hour before.
A line, an area or bars with variant, the line and the area with an end dot on their last value.
The spinner every Kino component shows while something loads. It looks the same whichever icon library a project uses.
When the text already says what is loading, hide the spinner from screen readers.
It is 16px and takes the text colour around it.
On its own, say what is loading with aria-label.
Size it with a size- class and colour it with a text colour.
A main action joined to a menu of the actions next to it, such as Merge beside Squash and merge. It is a Button group and a Menu, so it looks and moves as they do.
Put a SplitButtonAction and a Menu holding a SplitButtonTrigger in a SplitButton. loading runs the action and holds both halves.
The menu picks what the action does: keep the pick in state, show it on the action, and give the menu a MenuRadioGroup.
size sets both halves at once. The menu’s button stays square, as tall as the action.
variant sets both halves at once, and the group draws the line between them in a shade of their colour.
A landing page’s headline numbers in a row over hairlines, each with what it counts and where it comes from; the digits roll into place, one number after another, the first time each is seen.
One number leads beside the section’s words and counts up to its value the first time it is seen; the two or three that back it up roll in below, each with its source.
One number leads beside the words and counts up to its value; the ones that back it up roll in below it.
Every number leads, in a row over hairlines, with what it counts and where it comes from. The digits roll into place the first time each is seen.
What the Stats blocks share: a stat and where it comes from, the number that moves into place the first time its section is seen, and the section it stands in.
The numbers inside one large sentence, in full colour against muted words, rolling into place in reading order the first time each is seen, with the sources under it.
The numbers inside one large sentence, in full colour against the muted words, rolling into place in reading order, with their sources under it.
What a step looks like by its status, so the Timeline and the Stepper read the same: its mark, an Icon tile that is soft when done, solid when current, subtle while to come and destructive on an error, with a tick, a cross in an octagon or a dash that says so; the line that fills once a step is done; and the timing that lets a move of several steps fill one line after another.
Where a person is in a flow of steps, such as a checkout or a setup, horizontal or vertical. Steps already reached can be gone back to. When the current step moves, the lines between fill one after another and the current step’s tile lights once its line arrives; a done step’s tick wipes in, and an error has a mark of its own.
A checkout with Back and Continue. Continue: the line fills and the solid mark moves on; pick a step already done to go back to it.
status="error" marks a step that needs another look, with a mark of its own. Try again clears it and moves on.
Steps that are pages render as links, and linear={false} lets every step be picked in any order.
Without StepperTrigger, the stepper only shows where things are, such as an import that runs on its own.
orientation="vertical" stacks the steps, as the Timeline does. An optional step says so in its description.
Stacked layers that swell and thin around a centre line, such as revenue by region over months, or up from zero on a value axis. The layer under the pointer, or the one the Up and Down arrows reach, stays bright while the rest step back; a guide follows the stop, with the total above the stream and the lit layer’s value below it. New data moves every layer from where it is, and a new offset morphs them.
offset='zero' stacks the layers up from zero, so the total reads off a value axis.
The layers sit around a centre that moves as little as it can, centred on a line, or up from zero with offset, and morph from one to the next in the order they started in. The guide follows the pointer, with the total above the stream and the lit layer’s value below it.
Hours on a time axis with indexType='time', centred on a line, with straight runs between them.
A studio backdrop for a picture of the product: grey paper, lit softly behind it and falling off towards the edges, in any colour scheme.
A tree as rings round a centre, such as a bundle’s size by package and file: each ring a level and each arc a part of its parent, as large as its value, in its branch’s colour, a step nearer the background for each level, with its name on it where it fits. A press on an arc zooms into it until it rings the centre, and the centre, a path above it, or Escape zooms back out. The arc under the pointer or the keys and its path to the centre stay bright while the rest step back, and new data moves every arc from where it is.
Three levels as rings, each arc in its package’s colour, a step nearer the background for each level, with its name on it where it fits. Press a ring to zoom in until it rings the centre; the centre, SunburstChartPath above it, or Escape zooms back out. Another release moves every arc from where it is.
SunburstChartCentre shows the total in the hole, and the value and name of the arc under the pointer.
innerRadius={0} fills the middle, and labels='none' leaves the arcs bare for a small card, with the names in the legend and the tooltip. With no hole to press, SunburstChartPath is the way back out.
A box whose content crossfades, or rolls, when it changes, while its width follows, and an icon that rolls when something turns on. Button, Toast, Toggle, Tabs and Segmented control share it.
A swatch's press, its focus and the ring the picked one takes: the Color picker's presets and a product's colours share it.