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 hierarchy, such as files or pages, by the WAI-ARIA tree pattern: arrows, Home, End and typing a name move focus, and one item or many can be picked. Its rows are the Collapsible’s, a branch opening on its height under a rail, and one highlight glides from row to row as in the Table.
Hold expanded yourself to open branches from elsewhere, as Expand all does.
Press a folder to open it, or a page to pick it. Arrows, Home, End and typing a name move through what shows.
A whole as nested tiles, each as large as its value: groups with a header and their tiles inside, coloured by group or by a colour of your own, with each tile’s name and value written on it where they fit. A press on a group zooms into it until it fills the chart, and a path above it, or Escape, zooms back out. The tile under the pointer or the keys stays bright while the rest step back, and new data moves every tile from where it is.
color gives a tile a colour of its own from its row, here red for a notebook written in less than last week. Its label stays readable on any colour.
Rows with no children are one level of tiles, each in the next of the chart’s colours, with nothing to zoom into.
Groups with their tiles inside, coloured by group, with each tile’s name and size where they fit. Press a kind, or a tile in it, to zoom in until it fills the chart; TreemapPath above it, or Escape, zooms back out. Another month moves every tile from where it is.
zoom and onZoomChange hold the part in view as the path of names to it, so controls of your own and the chart’s presses agree, and new data keeps it.
With mode='multiple', a press or Space adds an item or takes it away, and Shift with a press or an arrow picks the items in between. With expandOnPress={false}, a press on a folder picks it, and its chevron opens it.
Suggestions that open at a character typed in a field: @ for people, # for issues, / for commands. The box grows out from under the character and narrows to what matches as you type, while focus stays in the field, and a pick takes the place of what was typed.
Type @ to mention someone, # to link an issue, or / at the start of a line for a command: the list opens under the character, narrows as you type, and Enter or Tab puts the pick in its place.
A trigger’s items can be a loader, given what is typed after the trigger and a signal that aborts when the query moves on. TriggerMenuEmpty says it is looking until the rows arrive.
TriggerMenuInput with render={<Input />} is a single line, such as a task’s title: # files it under a project and @ assigns it.
Each file's upload, for a list of files held elsewhere: a few at a time, with progress, cancel and retry, ending with what the server gave back. A saved file stands in the list as uploaded and never uploads. The File input's.
The signed-in person behind their avatar: who they are, their account, their workspaces, the theme and signing out. A Menu that opens as a bottom sheet on a phone, with submenus and radio groups for any layout.
Who is signed in, their pages, their workspaces, the theme and Sign out, every choice one press away. A workspace pick closes the menu, since the page changes.
The person signed in at a sidebar’s foot, as a row with their name and email, the menu opening above it.
The workspace and the theme each in a submenu, the workspace row naming the one they’re in. On a phone each submenu opens as a sheet over the menu’s.
Shares of a whole as a grid of squares, a hundred by default, dealt out so they always fill the grid and any share takes at least one. A total larger than the values leaves the rest as remaining room. The share under the pointer, the keys or the legend stays bright while the rest step back, and new data turns each square to its new share in a wave along the fill.
rows, columns and fill='columns' make a strip that fills up each column from the start, as a bar across does.
A hundred squares, dealt out so they always add up. Another range turns each square to its new share where it is, in a wave from the first, and the share under the pointer stays bright while the rest step back.
patterns draws a pattern over each share after the first, so they tell apart in grey and in print.
total sets the whole the values are shares of. The squares past them are the remaining room, named by remainingLabel, which the tooltip and the table read like a share.
A trace, or a page’s requests, as bars on one time axis: ui-sdk’s Waterfall, whose rows open to show the spans inside them. The span under the pointer stays bright while the rest step back, a pill glides along the axis to where it starts, and its tooltip and legend are the charts’.
Point at a span to light it and read its times, press it to pick it, and open a span to see the spans inside it.
loading shows rows that wait for the spans, after a moment and for long enough to read.
A flat list works too: a page’s requests, each a row, coloured by what they fetch.
Give the list a height and a long trace scrolls under its axis, which stays in view.