Motion-first React components built on ui-sdk, with docs your coding agent can read and controls an agent in your app can use.
A switch whose thumb stretches toward the other side while it is pressed, then slides across as the setting turns on or off.
Wrap it in a <label> with its text, so a press on the text turns it too, and name it from the title alone. Hold it down and the thumb stretches toward the side it will go to.
Each option is a <label>, so a press anywhere on the row turns it. Long text wraps, and the switch stays beside its first line.
Move it at once and make it readOnly while the change saves. If the save fails, set it back: the thumb slides back and the row says why.
One switch per row, at the end. Name it from the title with aria-labelledby, point aria-describedby at the description, and say why beside a disabled one.
Set size="sm" in a table or a menu. A switch with no text beside it needs aria-label.
Code as lines of coloured tokens, read by Shiki with its regular expressions in JavaScript (no WebAssembly). Shiki and each language load the first time they are needed, in the browser or on a server, and the colours are CSS variables.
Rows of records with their numbers lined up, plain or with the data work a list in an app needs: sorting, search, filters, pages, picked rows and hidden columns, in the browser or on a server, through `useTableData`. One highlight glides from row to row, picked rows join into one block, and rows glide to their new places as they are sorted, filtered, added or removed, while the box follows the table’s height. A wide table scrolls sideways and a tall one under a sticky header. A lined variant draws hairlines between rows.
The data behind a Table: sorting by one column or several, searching, filtering by picked values or a range, pages, picked rows across pages with Shift for a range, and hidden columns, in the browser or on a server. TanStack Table works it out; the hook hands back plain values for the Table’s parts. The Table installs it.
Search, filter by status, sort by a column or Shift-click to add another, pick rows across pages with Shift for a range, and hide columns: useTableData does the work in the browser.
Pick rows, sort by date or amount, archive and restore: rows glide to their new places, and the empty state takes their place without the page jumping.
Each order opens a TableDetail under it with its items; the rows below glide to make room.
variant="lined" draws a hairline between rows and a square highlight, for dense records read across.
Drag a column’s edge, or focus it and press the arrow keys, to resize it; the name and the actions stay in view as the rest scrolls.
The same table with a server doing the work: the hook hands over the whole view as one object to fetch with, and the rows there are stay while the next ones load, with a line sliding under the header.
A max-h- on containerClassName makes a tall table scroll in its box under a header that stays.
Each team holds its people as rows of its own, indented and sorted with it; a search opens the teams whose people match.
Tabs whose highlight travels to the picked tab: a pill that changes each label’s colour as its edge crosses, or an underline. A backdrop follows the pointer, and a long list scrolls.
A pill travels to the picked tab, and each label changes colour as the pill crosses it. A backdrop follows the pointer.
A disabled tab fades, and the arrow keys still reach it.
A tab with only an icon needs an aria-label and a square shape.
An icon sits before or after the label.
A list wider than its column scrolls. An edge fades while tabs are hidden past it.
An icon in TabsTabIcon rolls to its activeIcon when its tab is picked, and back when another is. An icon that stays the same goes in the tab on its own: rolling to itself would show nothing change.
Give the list w-full and each trigger flex-1.
With variant set to line, an underline travels in place of the pill.
The list stands beside its content, and the up and down arrows move along it.
Several values held as chips in one field: typed, pasted or picked from suggestions. A tag that comes or goes moves the others to their new places, across lines too, and a tag typed again is pointed out instead of added twice.
Pick a suggestion, or type a tag and press Enter or a comma. A tag typed again is pointed out instead of added twice.
In a Field, its label names the input and an invalid field marks it, with the error under it.
Without suggestions, no list opens and any text becomes a tag. Paste “latency, timeout, 502” for three at once.
What the Testimonials blocks share: a customer’s quote with who said it and where, the card it sits on, and the section they stand in.
Customers’ quotes on cards in packed columns, each with who said it and a link to where, folded to a set height with Show all.
Customers’ quotes in rows that drift past each other across the page, held while the pointer is over them or a card has focus, and still under reduced motion.
The quotes drift past in two rows, each the other way, and hold while the pointer is over them or a card has focus.
One customer’s quote at a time, in large type, with the others as faces to pick from; the room the quote takes follows on the layout role.
One customer at a time, in large type, with the others as faces to pick from. The room the quote takes follows the one picked.
Every quote in view on cards in packed columns, each card leading to where its customer said it. A wall taller than its set height folds, and Show all unfolds it.
A textarea in the same box as Input, which grows with its text and then scrolls.
It starts at three lines, grows with its text and then scrolls.
Its mark sits in the top corner. For a counter, use InputGroupTextarea in an Input group.
Text that shows work going on, such as "Thinking…". While it loads, light moves over the words at an even pace (a band that passes, a glow, or a breath), and when the work ends they settle once at their full colour. It moves only on the compositor, so it keeps going while the page is busy.
Nothing travels: the whole line fades a little and comes back, for many rows working at once. Muted text dips below 4.5:1 for part of each breath, and under reduced motion it holds still.
The band lights muted words up to the foreground. It needs text lighter than the foreground, or a --text-shimmer-highlight of your own: on foreground text it has nothing to add.
loading={false} settles the words once at their full colour from wherever the light was, and true starts it again where it stopped.
The default. A soft band passes and the words fade towards the page under it, so it shows on text of any colour, on any surface, and keeps full colour everywhere else. A new label crossfades and starts a new pass.
Kino's rules for a project's global CSS: the feels that time every motion role, the density tokens that size controls, rows and surfaces, the shape tokens that round their corners, the edge fades' variables, and the success and warning colours. The feels, density and shape are each set with data-feel, data-density or data-shape on the page or on any part of it.
Light, dark or the device’s own, as an icon button, a Segmented control or a Menu’s radio group. Saved and on the page before it paints, every switcher stays in step, and the page crosses over to the new theme.