Motion-first React components built on ui-sdk, with docs your coding agent can read and controls an agent in your app can use.
It is w-72 unless you set a width with className.
Focus moves to the first control inside when it opens.
How every popup anchored to a trigger opens: it grows out from under the trigger and folds back into it. Popover, Menus, Select and Combobox share it.
Kino's settings, light or dark, density, feel, shape and reduced motion, as ui-sdk preferences: saved in the browser and written as data attributes before the first paint, with shadcn's dark class beside the colour scheme.
Put <Preferences> at the top of the page with the ready-made colour scheme, density, feel, shape and motion preferences, read each with ui-sdk’s usePreference and change it with its set. Here the card keeps its own, so the rest of the page stays as it is.
Make one with ui-sdk’s createPreference and style what it wraps by its attribute, here a list or a grid that stays as it was left.
A card per plan under a monthly and yearly switch whose prices roll to the new amount, with what the year saves, the plan you recommend outlined, what each plan includes, and every feature compared below. On a phone the comparison shows one plan at a time, and switching plans changes only the values that differ.
The cards without the comparison, for a short page or a section of a longer one.
A card per plan, with every feature compared below and an offer for larger teams. Switch billing and the prices roll; on a phone the comparison shows one plan at a time.
The plan the person is on says so in place of its button, and the others offer a switch, for a billing page in your app.
How far a task has got. The fill draws along a thin track, a sheen runs over it while it works, a piece slides across while the length is unknown, and the value turns into a tick when it is done. A ring shows it where a line is too short for a track.
Put a ProgressLabel and a ProgressValue inside, and they sit in a row above the track. While it runs, a sheen sweeps the fill; once done, the value turns into a tick.
Give null while nobody knows how long it takes, and a piece slides across. Give a number once you know, and the fill draws in. completeLabel names what it says when done.
Leave out the children and name it with aria-label, for a row that already shows its name. variant="destructive" marks a task that failed; say so in words beside it.
ProgressRing shows it where a line is too short for a track, such as a row’s end or a pill. With null the Spinner’s arc turns in its place.
segments draws one segment a step, for steps done in any order: filled once done, dimmed once skipped, empty while to do. getValueLabel says the count in words.
Several values of each series on axes round a centre, one shape per series, on a grid of polygons or circles, with names that wrap and never clip, a value axis, and axes on scales of their own. A dot on each shape marks the axis under the pointer or the keys and turns round with its name, a series whose outline the pointer is on comes forward, and new data moves each point along its spoke from where it is.
Two teams on the same six axes. Another quarter moves each point along its spoke from where it is, and a dot on each shape marks the axis under the pointer, turning round with its name.
fill={false} draws only the outline and dashed sets last quarter apart, so two shapes compare without one hiding the other.
maxKey puts each axis on a scale of its own, here each goal’s target, so goals in different units share one shape and the rings read as shares.
RadarGrid shape='circle' draws the rings as circles, RadarValueAxis writes their values up the top spoke, and dots marks every point.
Values as arcs round a centre: rings against goals of their own that lap past them, or a gauge with a needle, the Meter’s low and high marks, and its range at the ends. The ring under the pointer or the keys stays bright while the rest step back and its value rolls into the centre; a new value sweeps each ring from where it is.
startAngle and endAngle make an arc, RadialChartNeedle points at the value and RadialChartRange writes the ends. Past high the arc and value turn red, as the Meter does.
Rings against goals of their own, with maxKey. Past its goal a ring laps round again, and a shadow under its end shows the overlap. Another day sweeps each ring from where it is, and the centre gives the ring under the pointer as a share of its goal.
On three quarters of a circle, RadialChartLabels names each ring where it starts. With no domain, the rings share one that runs to a round value past the highest.
One thin ring with its share in the centre: a step through a task.
One of a few options, each a card with a title, a description and room for a price or an icon. Picked, the card fades to grey and its empty circle gives way to a check that wipes in, while the old pick fades back.
Each card is the radio, so a press anywhere on it picks it. The picked card fades to grey and a check wipes in, while the old pick fades back.
disabled on one card turns off only that option; say why on the card. disabled on the group turns off every card.
Set invalid on the group’s Field once the person tries to go on without a pick, and give FieldError the reason.
Set className="grid-cols-1" for one card per row, and lay a card out in a row with an icon at its start.
A radio group whose picked colour wipes in from the start side, as the Checkbox’s tick does, and wipes back out when another option is picked.
Wrap each radio in a <label> with its text. The picked colour wipes in from the start side, and the old pick wipes back out. For options as cards, use the Radio cards.
A disabled group fades and can’t be changed; disabled on one radio turns off only that option. Say why beside it.
Lay the options out in a row with className; they wrap when the row is full.
Set invalid on the group’s Field once the person tries to go on without a pick, and give FieldError the reason.
Set className="gap-0" for rows that sit against each other.
A star rating built on a radio group: point to preview a score, click or use the arrow keys to pick one, in whole or half stars. The fill wipes along the row from the old score to the new one. Read only, it shows any fraction, such as 4.3.
Point at the stars to preview a score, and click to pick it. In a <form>, name sends the score; invalid colours the stars until one is picked.
A disabled rating fades and can’t be changed. Say why beside it.
Set step={0.5}: the first half of a star picks the half. The arrow keys move by a half.
Set max for another number of stars. In a narrow column the stars share its width.
Set readOnly to show a score, such as an average: any fraction is drawn, and a screen reader reads it as one image.
One ref for several, so a part can measure its own element and still hand it to a ref of yours, and a ref that marks an element mounted once it has painted, so an entrance never plays on page load.
How a part says no to what the person tried: it swells for a moment and settles back. The Alert dialog and the Save bar share it.
Panels a person resizes by dragging the handle between them, or by keyboard, on ui-sdk’s Resizable, with a grip on the line that stretches while dragged. A panel folds away and back on Enter or a double click, and every change that isn’t the pointer’s own movement glides. The gutter variant makes each panel a surface of its own.
Drag a handle, or focus it and use the arrow keys. The sidebar is collapsible: drag it past its smallest size, press Enter on its handle or double-click it, or call collapse() on a controller from a button, and it folds away.
With variant="gutter" each panel is a surface of its own, and the gap between them is the handle. Its grip shows under the pointer and while the handle has focus.