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 disabled button fades and ignores presses.
Buttons joined in a row or a column, each divided from the next. One highlight glides from button to button under the pointer and takes the shape of each.
A button in the group can load and change its label: its neighbours make room, and the highlight follows its new size.
Put Buttons in a ButtonGroup and name the group with aria-label. A menu trigger, a link or a filled button joins the row the same way. For one action with a menu of others beside it, use the Split button.
A group of groups keeps a gap between them, and each one glides on its own.
ButtonGroupText puts a label in the row, such as where you are. orientation="vertical" stacks the buttons.
Use an icon size and give the button an aria-label.
Mark an icon with data-icon and it gets its own place beside the label.
loading shows a spinner and blocks presses. The button keeps focus.
Four sizes. Each has an icon-only twin, such as icon-sm.
The six variants of the shadcn Button.
ui-sdk's Calendar: a month of days to pick one day, several or a range from, by pointer or by the WAI-ARIA date grid's keys. A backdrop glides under the pointer and a pill slides to the pick, a range grows along each week, and each month's name opens a popover of months and years. To the month or the year, it picks one of twelve. Every date comes from the dates lib.
Every callback gets ui-sdk’s change details: details.cancel() keeps the value, and onFocusedChange follows the day with focus, to say why a day can’t be picked.
dayContent draws what a day shows in place of its number, such as a price. Screen readers still hear the full date first.
One day, held as a yyyy-mm-dd string. Weekends and bank holidays are unavailable: struck through, still reachable by the keys, never picked. For a date in a field, the Date picker opens it from a calendar button.
In a Field, the label names the calendar and the day is sent under the field’s name. With required, sending it empty shows the error and focuses the grid.
locale names the months and days, and labels names the calendar’s own buttons, here in French.
Days before min and after max fade, and the arrows and the popover’s months and years stop at them. A month’s name is two presses from any year.
With granularity='month' the Calendar picks a month from its year’s twelve, as its heading’s popover does, and the value is yyyy-mm. The year steps out to twelve years.
With mode="multiple" each press adds a day or takes it out, and the value is the sorted days. maxDays caps how many: once five are picked, the other days fade until one comes out.
Hold the value and the month to set them from outside: a vertical Segmented control of presets, which lets go once days are picked by hand.
With mode="range" the value is [start, end], and null until both ends are picked. months={2} puts two months side by side, and they stack when there isn’t room.
showWeekNumbers puts each week’s number before it, by ISO 8601 when weeks start on Monday. weekOfYear from the dates lib gives the same number.
With granularity='year' it picks a year from twelve, and the value is yyyy. min and max take a year, a month or a day.
The close of a landing page, centred on the Hero’s grid: the title, a line on what happens when you start, the main action with a quieter one beside it, a note that makes saying yes easy and who has said yes already.
The close of the page on the Hero’s grid: the main action with a quieter one beside it, a note and who has said yes already. Nothing moves until it is pointed at.
The title, one button and the note under it, for a page that asks for one thing only.
What the Call to action blocks share: the words that close a landing page, the main action with a quieter one beside it, the note under them and who has said yes already.
The words beside the product finishing the job the page sold. The picture plays once as you scroll to it, then rests on the result.
The close of a landing page beside the product finishing the job the page sold: the words and actions on the start side, and a picture of the product at work that plays once when it is seen.
A surface that groups related content: a header with a title, a description and an action, the content, a picture to the edges and a tinted footer. A card that leads somewhere stretches its title’s link over the whole of it, and its border darkens on hover.
A header with a title, a description and an action at its end, the content, and a tinted footer that reaches the bottom edge.
A CardLink in the title makes the whole card lead somewhere: its border darkens on hover and it takes the focus ring, while the link’s name stays the title.
A picture in a CardSection at the top takes the card’s corner; an AspectRatio inside gives it its shape.
A CardSection runs to the card’s edges, here a group of items that meets the header’s border.
Slides seen a few at a time, moved by a drag or a swipe, Previous and Next, the indicators and the arrow keys. The track scrolls a row along under a window; the deck stacks the slides as cards and throws the top one off.
Hold the page to move it from outside, here from the thumbnails. Pages count from 1.
With variant="deck" the slides are a stack: drag the top card off either way, or press Next, and it goes to the bottom while the rest step up.
The row scrolls a page at a time, by a drag or a swipe, the arrow keys, the buttons or the indicators.
Give each slide its width with basis-*, less the gaps. Previous and Next, and each indicator, move a whole view at a time.
A product’s releases, newest first, each with its day, version and tags held beside its story: a picture of it at work, what it does for the person and its notes, breaking changes first. A tag narrows the list as the releases that stay glide together, a link lands on any release, and a form and a feed say when the next one ships.
No pictures or tags: each release is its day and its notes, as an API’s changelog lists them, with its feed for a reader.
Each release told at length, its day, version and tags held beside it as it scrolls past. Pick a tag to narrow the list, or copy a release’s link to send someone straight to it.
The parts every chart is built from: the grid, the axes with a pill that glides to the category under the pointer, a tooltip that slides between categories, a legend that shows and hides series, reference lines and bands, and Kino’s chart colours.
Areas in the cartesian frame: their spans, stacked or as shares, with a hidden one folded where it would stack, and a stream’s layers around a centre line.
Bars in the cartesian frame: their spans, side by side or stacked, the slot each takes in its band, and how far they reach.
What the charts drawn as bars share: a bar as the clip of a layer as large as the plot, its shape that dims, rises and glides, the label on its end, the mark of a missing value and the placeholder’s bars. The Bar chart and the Funnel chart draw with it.
The cells of a chart drawn as a grid of cells, on the chart root with the grid reader: the cells, the scroll of a grid wider than its card, the one under the pointer bright while the rest step back, a new range filling them in a wave, the legend of the colour’s steps, the tooltip and the placeholder. The Heatmap and Waffle charts draw on it.