Motion-first React components built on ui-sdk, with docs your coding agent can read and controls an agent in your app can use.
An accordion whose panels open on a transition that turns back from where it is, as flat rows or as a card whose open item breaks away. Content that changes size while open moves the rows below with it.
The items share one card. The open item breaks away from the others, and its plus becomes a minus.
Content that grows or shrinks while its panel is open takes the panel, and the rows below, with it.
One section is open at a time. A panel pushes what sits below it, and turns back from where it is when you close it midway.
A disabled item fades and stays closed.
An icon sits before the title. When something follows the title, wrap the title so it takes the room between them.
With multiple, opening a section leaves the others as they are.
A picker inside a text control's box, at its start or end, such as a phone number's country or an amount's currency: a button that shows the pick, and the Combobox's list with a search.
The agent bridge: an AI agent reads the components on the page and changes them through their own APIs, each step approved by your allow callback, with tools for your model and for a browser's own agent through WebMCP.
A message in the page, with the Toast’s icon for its type, a title, a description and actions. One that opens or closes after the page has loaded grows or shrinks so the page makes room, a change of type rolls its icon to the next, and it reads out what it says when that changes.
Buttons or links go under the description in AlertActions.
A new type rolls the icon to the next, so the loading spinner turns into the result, and the box glides to the new text’s height.
showCloseButton adds a button that closes it. It shrinks away and what is below moves up; opened again, it grows back.
A question that needs an answer before something that can’t easily be undone. The Dialog’s box and motion; a press outside makes it swell instead of closing it, focus starts on Cancel, and an action that returns a promise holds it open with a spinner until it settles. The badge variant centres the question under an icon.
Return a promise from action: the dialog stays open with a spinner until it settles, and stays open when it rejects. This one fails once.
With variant='badge' the question sits centred under an icon in AlertDialogMedia, and the answers stack.
Opened with open, it needs no trigger, as when a menu item asks first. Focus goes back to what had it before.
It rises into the centre like the Dialog. A press outside makes it swell instead of closing it, and focus starts on Cancel.
For the highest stakes, ask for the name in AlertDialogBody, start focus there with initialFocus, and allow the action once it matches.
Each type has its own icon, so it reads without its colour: info, and success, warning and error, which take the success, warning and destructive tints.
A number that moves to its new value when it changes, written for its locale: each digit that changed rolls to its new one, spins through the digits between, or the whole number counts. A screen reader hears the value once, never the numbers in between.
The whole number counts through the values between and never goes past the new one. Pick a range or refresh.
Each digit that changed rolls to its new one, up when the value grew. Add seats or switch the billing to see the totals follow.
Any Intl.NumberFormat options, in any locale: the digits line up on the decimal point, and the currency sits where the locale puts it.
Each digit spins through the digits between, the way an odometer does, so a bigger change travels further.
Tells a screen reader what changed, such as a tag or a file joining a list, politely, through ui-sdk’s live regions. The same words said twice are heard twice, and what is said in one go is read as one message.
The frame of an app: the Sidebar with the workspaces and the person signed in, a header with the breadcrumb, search and notifications, and the page with its title and actions. The page sits as a card on the sidebar's tint, shares one plane with it, or sits under a bar across the top. The sidebar collapses to its icons with ⌘B and is a sheet on a phone; ⌘K opens the search.
The sidebar and the page share one plane, split by a line, for an app whose pages are dense tables and lists.
The page is a card on the sidebar’s tint, its header inside it. The toggle collapses the sidebar to its icons, and on a phone the sidebar is a sheet. In your app, ⌘B and ⌘K do the same as the toggle and the search.
A bar across the top holds the workspaces, the search, the notifications and the person, and the sidebar under it holds only the pages.
Values over time as filled areas, overlapping, stacked or as shares, or as a band from a low to a high value. The day under the pointer stays bright, line and fill, while the rest steps back, and a new range, a hidden series or a new layout moves each area from where it is.
A value given as [from, to] draws a band between the two, and both ends are marked while lit.
Below zero, the area fills up to the zero line.
Times given as instants, here milliseconds from a server, show on the visitor’s own clock, or on the timeZone given.
Areas overlap, stack or stack as shares with stack, and a new range, layout or hidden series moves each area from where it is. The day under the pointer stays bright while the rest steps back.
paused holds a live chart still while rows keep arriving; let go, it glides to now.
One area with a reference line, its fill fading from its peak.
Charts in a ChartGroup share the day under the pointer or the focus, by its key.
The fill under a line: the shape between its points and their baselines, a wash in the line’s colour that fades from the shape’s peak to the plot’s bottom, an SVG gradient that steps back with the line. Area chart and Sparkline share it.
A box that keeps its width to height, for an image, a video or a map. A new ratio glides into place, and a class can change it at a breakpoint.
A new ratio glides on the layout role, and what sits below moves with it.
Give it a ratio, width over height, and size the picture inside to fill it with size-full object-cover.
In a Card’s CardSection, the picture runs to the card’s edges and keeps its shape at any width the card takes, so a row of cards lines up.
Any ratio, written as width over height. A box taller than the picture crops it with object-cover; use object-contain to show all of it.
What the Sign in and Sign up blocks share, so the two screens look, move and read as one: the screen with your logo and the card, the email box, the "or" line, the Google, GitHub and Apple buttons, the screen that ends the card, and a resend that counts down.
A text field that suggests as you type: the text is the value, and a suggestion only fills it in. The list grows out of the field and moves to the height of what still matches, while one highlight glides between the rows.
Focus the field to see recent searches, then type: the list moves to the height of what still matches, and the matched part of each suggestion is bold.
Set filter={false} and render the results as rows. The list says it is looking from the first key, and a spinner joins once the search lasts: in the list while it is empty, in the field while older results still show. AutocompleteStatus tells a screen reader how many it found.