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 needs no popover: here it sits in a settings card beside what the colour changes.
Presets first. Custom opens what you put inside ColorPickerPalette, and keeps your colour while you try a preset.
The edge of a table's column that resizes it, on ui-sdk's createResize: a drag, the arrow keys, Home and End, Enter or a double press to put it back, and a width an agent can set. The Table's.
An input that filters a list as you type: one value, many as chips, or a button whose list has its own search. The list grows out of the field and moves to the height of what still matches, while one highlight glides between the rows.
Type to filter, and Enter picks the first match. As you type, the list moves to the height of what still matches.
Set filter={false} and render the results as rows. Once a search lasts, a spinner shows: in the list while it is empty, in the field while older results still show. ComboboxStatus tells a screen reader how many it found.
Put rows in a ComboboxGroup under its ComboboxGroupLabel; a long list scrolls.
In a Field, its label names the input and an invalid field marks it, with the error under it.
With multiple, each value is a chip. Backspace in the empty input removes the last one.
Give ComboboxTrigger children for a button that shows the value, and put the input in ComboboxContent.
A command menu: type to find a command, arrows to move, Enter to run it, on a page or in a dialog from ⌘K. A command that needs a choice opens a page that pushes the last one out across the start edge, and the box moves to the height of what matches.
Press the search button to open the menu over the page, run a command, and see the issue change. In your app, useShortcut opens it from ⌘K.
CommandEmpty takes the rows’ place and says what was looked for. Delete a letter to bring the commands back.
Without its dialog, the menu sits on the page as a box, and moves to the height of what matches as you type.
A command that needs a choice opens a page: give pages the names of the open pages and items the current page’s rows. The new page pushes the last one out, and Escape, Backspace or the page’s name goes back.
Bars, lines, areas and points on one plot, each series drawn as its config says and read against the value axis it names, up to one on each side, with the second axis’s ticks on the first’s gridlines. The parts are the Bar, Line and Area charts’ own; each kind of mark stacks in its own layer, the category under the pointer stays bright across every mark, and one tooltip lists every series there.
A line runs on past the bars, dashed from forecastFrom, so what is measured and what is projected read apart. The months to come have no bar yet.
An area given [from, to] values draws a band, here on a second axis: how long syncs took, from the median to the 95th percentile, behind how many there were.
With a window and live, the bars and the line scroll as one at a steady speed, and each row shows as it arrives. Point at the plot to hold it still.
Bars on the chart’s own axis and a line on a second one, named in axes. The second axis’s ticks line up with the gridlines, and each axis is titled with its series and its key.
With stack, the bars stack among themselves, BarTotals writes each total past its stack, and a dashed line, such as last year, reads against it. The tooltip’s total adds the bars alone.
A point marks each category’s goal beside its bar, in a shape of its own, so a missed goal reads without colour.
A line through the middle of each bar, such as an average over the week, shows the trend the daily values hide.
A series with data of its own, such as a straight trend given by its two ends, draws at its own times across the bars. It needs indexType='time'.
A Button for an action that is hard to take back, confirmed in place. It grows into a question with Cancel beside the action, shows a spinner while the action runs, then says how it went, with Undo.
Give it the action as onConfirm and the way back as onUndo. It asks, shows a spinner while the action runs, then says how it went, with Undo.
Leave out onUndo for an action with no way back: the result says it is done and goes back to rest.
A promise that rejects shows failedLabel with Try again. This one fails the first time.
Give an icon size an aria-label. It widens into the question, so give it a line with room to grow into, such as the name’s.
Name what goes. A question too long for one line takes its own, with Cancel and the action below it.
Cancel and the action take the button’s size.
A visitor’s cookie consent: the categories they turn on, saved in the browser and asked again when it expires or the categories change, with a hook, a gate that holds a script back until its category is on, and Google Consent Mode set before the tags load.
A value a user may control: theirs when they pass one, kept inside the component when they don’t; and a value a ui-sdk part keeps, followed so the parts beside it can read it.
A card in a corner that asks about cookies, with Reject all as easy as Accept all; Customise grows it upward into a switch for each category. The choice is saved and scripts wait for it.
A bar above the header, in the page’s flow, that asks about cookies, with Reject all as easy as Accept all. It covers nothing: the page makes room for it and for the switches Customise opens.
A card in a corner, with Reject all as easy as Accept all. Customise grows it upward into a switch for each category; Cookie settings in the footer opens it again.
A pill at the foot of the page that asks about cookies in one line, with Reject all as easy as Accept all; Customise opens it into a panel with a switch for each category.
One line at the foot of the page that opens into a panel with a switch for each category. In a column too narrow for one line, it is a card.
What the Cookie consent blocks share: when the banner shows, the switches a visitor sets before saving, the three ways to answer, where focus goes, what a screen reader hears, and a category’s row.
A bar above the header, in the page’s flow, so it covers nothing: the page makes room for it, and for the switches Customise opens below it.
A Button that copies a value. Its icon rolls to a tick and its label to “Copied”, a status region says so, and it goes back after two seconds. Icon-only, it is named in a tooltip; a copy that fails shows an error.
A function may return a promise, for text it fetches at the press. A wait past 200ms shows the spinner.
Give it the value and a label. Its icon rolls to a tick and the label to “Copied”, then both go back.
An icon size takes an aria-label, which its tooltip shows; after a press the tooltip says how the copy went.
A function for value is read at the press, so it copies the text on the page as it is then.
Put it in an InputGroupAddon, at the size of the field’s buttons.
Pass another button with render, such as a ToolbarButton, and it copies the same way.
A count on the top end corner of a control, such as the unread on a bell or a chat’s launcher: it rolls to its new value, reads 99+ past 99, and shrinks away at none. The Notification center’s bell and the AI chat popup’s launcher share it.