Catalog
Components
The parts an interface is built from. Each one runs live below, ships its complete source, and installs with a single command.
Forme foundation
Design tokens, motion presets and the shared class-name helper every Forme component builds on.
layout

Accordion
Collapsible sections on the Base UI primitive, with headings a screen reader can list, arrow-key navigation between triggers and a height that animates to the measured content.
layout

Alert
An inline message in four states, with a matching icon, an optional title and room for an action. Only the destructive state interrupts a screen reader; the rest wait their turn.
feedback

Area Chart
A line or area chart in plain SVG with no chart library. A crosshair snaps to the nearest point and lists every series, arrow keys walk it, round tick values, a legend from two series up, and a hidden table so screen readers get the numbers.
data display

Audio Player
A transport bar for one recording: skip back and forward, play, a seek bar, time, volume and speed. Its ref is a small handle, so a transcript or a chapter list can seek and play it from outside.
audio

Avatar
A user image with a fallback that shows initials while the image loads, and when it never arrives at all. Built on the Base UI avatar primitive, so the image and the fallback swap without a flash of empty space.
data display

Badge
A small label for status, counts and metadata, in five quiet variants and two sizes. The colour lives in the tint so the text stays readable at eleven pixels, and an icon or a dot inside the badge carries the state at a glance.
data display

Bar Chart
A single or grouped column chart in plain SVG. Columns are capped at 24px with rounded tops and 2px gaps, the hovered category lifts while the rest recede, arrow keys read each category, and a hidden table carries every value.
data display

Breadcrumb
Where a page sits in the hierarchy, as a labelled nav with an ordered list and the current page marked. Separators are drawn in CSS, so a screen reader hears the path and not the slashes.
navigation

Button
The primary action element. Four variants and three sizes, gradient primaries that crossfade on hover rather than snap, and an icon contract where the button owns the icon size. No client boundary, so it works in a server component and ships no JavaScript.
buttons

Calendar
A month grid for a single date or a range, with no date library. Full WAI-ARIA keyboard support, min, max and disabled days, a range that previews under the pointer, and a fixed six-week height so nothing below it jumps.
inputs

Card
A bordered surface with a header, title, description, content and footer you compose yourself, so a card is never more structure than the content inside it needs. Everything reads from the foundation tokens, which makes it retheme with the rest of the library.
layout

Chart
The tooltip and legend every Forme chart shares: a floating panel with a colour, a name and a right-aligned value per series, and a row of swatches. Installed with any chart; use them directly to give a chart of your own the same finish.
data display

Chat Message
One turn of an AI conversation: a compact bubble for the person, full-width prose for the assistant, a streaming caret, and copy, regenerate and feedback actions that keyboard and touch can always reach.
data display

Checkbox
A single choice with a visible label wired to it for a screen reader. Carries a destructive variant for choices that cannot be undone, and the box itself fills with the accent when checked so the state is readable at a glance.
forms

Citations
Sources for an AI answer: numbered inline markers that preview their source on hover or focus, and a Sources line with stacked favicons that opens into the numbered list.
data display

Code Block
Code an agent wrote or is writing: highlighted by a small built-in tokenizer in the theme's syntax colours, with line numbers, marked and diff lines, wrapping, a header with a title and actions, a small size for tool output, copy, and a view that follows streamed code until you scroll away.
data display

Command menu
A command palette opened with ⌘K or Ctrl K, with a search field, grouped items, keyword matching and an empty state. Built on cmdk for the filtering and the keyboard path, inside a Radix dialog for the focus trap.
navigation

Composed Chart
Columns and a line on one axis, on TanStack Charts: volume against its target, actuals against the plan. Rounded columns side by side, the line drawn over them, and a band cursor that lists every series in the column.
data display

Confirm Button
A destructive button that grows into its own confirmation on a spring, so the question appears where you are looking. Focus lands on Cancel, Esc or clicking away disarms it, and the confirm button shows a spinner while the action runs.
motion

Data Table
A typed table with sortable headers, search, row selection with bulk actions and paging. Columns are data and every cell is yours to render. A sticky header, aria-sort, an indeterminate select-all, and a selection that survives sorting.
data display

Dialog
A modal built on the Base UI primitive, so the focus trap, the inert background, Esc to close and the return of focus all come from one well tested place. The backdrop fades and the panel scales in, both in and out, and everything comes from the foundation tokens.
overlays

Dock
A macOS-style row of icons that swell under the pointer on a spring, with their neighbours growing too. Labels show on hover and focus, open apps get a dot, and reduced motion keeps every icon at its resting size.
navigation

Donut Chart
Part of a whole as a ring with the total in the centre. The legend is a list of buttons with values and percentages, and hovering or tabbing through it lifts the slice and shows its value in the middle.
data display

Drawer
A bottom sheet on the Base UI dialog, so it keeps the focus trap, Esc and focus return. Drag it down by the handle or header and it follows your finger, then springs back or closes when pulled past a third of its height or flicked.
overlays

Dropdown
A menu of actions revealed from a trigger. Grouped, with labels, a destructive variant, checkbox items, and full keyboard and typeahead support from the Base UI menu primitive — Forme adds only the surface and the motion.
overlays

Dynamic Island
A black pill that morphs on a spring to fit whatever it is showing: a timer, a call, a song or a notification. Content swaps through a short blur crossfade, the corners never stretch mid-morph, and each change is announced politely.
motion

Empty State
What a list, table or page shows before it has anything in it: a stacked icon, a title, one sentence and the next action. So an empty screen reads as a start rather than an error.
feedback

Feature Voting
A list of feature requests to upvote, with a status for each. Votes land at once and roll the count; the list sorts by votes when it mounts and never under the pointer.
data display

File Diff
A change to one file as an agent applies it: path, counts and a proportion bar in the header, highlighted added and removed lines below, following the newest line while it streams and folding away when done.
data display

File Dropzone
A drop target that is also a real file picker, so click, keyboard and drag all work. Checks type and size on drop as well as in the picker, and reports each rejected file by name.
inputs

Heatmap Chart
A grid of cells whose colour carries a quantity, on TanStack Charts: activity by weekday and hour, scores by team and quarter. Six steps of one hue from the sunken surface to the chart accent, optional values in the cells, and a tooltip on every cell.
data display

Histogram Chart
How a set of measurements is distributed, on TanStack Charts. Bins are computed with round edges, the tooltip names each range and its count, and dashed markers put a median or p95 right on the shape.
data display

Hold Button
Press and hold to confirm, with a fill that sweeps across while you hold and drains back if you let go early. For actions too serious for one click and too small for a dialog. Space and Enter hold it from the keyboard.
buttons

Image Compare
Two images split by a divider you drag from anywhere on the image: before and after, design and build, light and dark. To assistive technology the divider is a real slider, with arrow, Page and Home/End keys.
data display

Image Generation
An image an assistant is making: the frame keeps the image's shape from the start, a field of dots ripples while it generates, the image sharpens in through refining, and a failure offers to try again.
data display

Input
A text field with a real label, optional description, an error that is announced and wired up with aria-describedby, and room for an icon on either side. Sizes and the invalid state come from the same tokens as every other Forme surface.
inputs

Kbd
A keyboard key and a chord of keys, rendered as real kbd elements with a keycap edge. For shortcut hints in menus, tooltips and empty states.
data display

Lightbox
A photo gallery whose thumbnails fly into a full-screen viewer and back again. Arrow keys, a thumbnail strip and swipe move between photos, and it is a Base UI dialog underneath, so focus is trapped and returns to the thumbnail you opened.
overlays

Line Chart
One or more series over an ordered axis on TanStack Charts, as smooth lines or as areas that fade to their baseline. A dashed cursor snaps to the nearest x from anywhere in the plot, the tooltip lists every series there, and areas can stack.
data display

Loader
Eight loading indicators — ring, dots, bars, a dot-grid wave and orbit, a terminal braille spinner, a figure-eight comet and sparkles. Pure CSS in a server component, sized in em and coloured by currentColor, with a still frame under reduced motion.
feedback

Marquee
A seamless, endlessly scrolling row for logos, photos or testimonials. It pauses on hover and focus, screen readers hear the content once, and reduced motion turns it into a row you scroll by hand. Pure CSS.
motion

Message
Chat messages assembled from parts: avatar, header, bubble, footer, groups, markers, a typing indicator and a measured Show more. The side is set once and every part follows it, with no provider.
data display

Message Scroller
The scrolling transcript of a chat: it follows a streaming reply, lets go the moment you scroll up, and brings you back with a Jump to latest pill. An optional rail of ticks previews and jumps to any message.
data display

Metal Button
A button with a chrome rim whose reflections travel slowly round it, and a glint that crosses the face on hover. Plain CSS in a server component, still for reduced motion.
motion

Mic Selector
A microphone picker that asks for permission first, so devices show by name rather than as blanks, then stays current as headsets are plugged in and out. Hands back a deviceId for getUserMedia.
audio

Multi Select
Choose several options from a long list: removable chips you can type into to filter, over a list where each option toggles. Groups, a max with a counter, Backspace and arrow keys through the chips, and plain form submission — on Base UI's Combobox.
inputs

Number Flow
A number whose digits roll like an odometer when it changes, so only the digits that changed move. Formatting comes from Intl, so currency signs and separators stay put, and screen readers hear the value once.
motion

Number Ticker
A number that counts up when it scrolls into view and counts between values when it changes, formatted with Intl. Screen readers hear the final value once, and reduced motion skips the count.
motion

OTP Input
A one-time code field drawn as a box per character over one real input, so typing, paste, SMS autofill, Android keyboards and screen readers all just work. Overwrites in place, shakes on a wrong code, draws a check on a right one.
inputs

Pagination
Page links rendered on the server, with the ends always reachable and a gap only where it hides more than one page. Previous and next hold their place on the first and last page, so nothing shifts as you click through.
navigation

Poll
A question to vote on that turns into its results in place: bars grow to each share, the percentages roll and always total 100, and your choice is marked. Single or multiple choice, on real radios and checkboxes.
forms

Popover
A small surface anchored to a trigger, with a title and a description that Base UI wires into the accessibility tree so the popover is announced with a name. Collision-aware placement, portalled so it escapes overflow, and a Close part for the explicit way out.
overlays

Progress
A determinate progress bar with its label and value, both announced to a screen reader by the Base UI parts rather than by hand-written aria attributes. A null value renders as indeterminate and dims the track so it reads as waiting.
feedback

Prompt Input
The composer for an AI chat. Enter sends and Shift+Enter breaks a line without ever sending half an IME word. It grows with the text, takes pasted images as attachments, has a slot for model pickers and toggles, and its send button turns into stop while a reply streams.
inputs

Radar Chart
Several measures on one shape for comparing a few profiles, on TanStack Charts. Every spoke shares one scale from zero, the grid is a polygon, and focus picks a whole spoke so the tooltip lists every profile on it.
data display

Radial Bar Chart
Concentric rings that sweep round to their value over a faint track, on TanStack Charts: usage against plan limits, progress toward several goals. Rounded ends, an open middle, and every value printed in the legend.
data display

Radio group
A choice of exactly one option, where the group owns the value and the arrow keys travel in the direction the options are laid out. Horizontal and vertical are the same component with an orientation, and a disabled option reads as present but unavailable.
forms

Reasoning
A model's visible thinking that opens while it thinks and folds away when the answer arrives, with a live timer and a 'Thought for 4s' summary. Once the reader opens or closes it, it stays where they left it.
feedback

Scatter Chart
Two measures against each other, one dot per observation, on TanStack Charts. Groups take their own colour and legend entry, an optional dashed trend line fits each group, and focus finds the nearest point by pointer or arrow keys.
data display

Segmented Control
A row of mutually exclusive options whose selected pill moves between them on a spring. It behaves as a radio group, with one tab stop and arrow keys that move the selection, and reduced motion turns the spring into a cut.
motion

Select
A choice from a list too long for radio buttons. Grouped with labels, an inline check on the selected option, typeahead and arrow-key navigation from the Base UI select primitive, and a trigger that reads as a field rather than as a button so it sits beside inputs without looking wrong.
forms

Separator
A hairline between two things. Horizontal by default and vertical when rotated, with the vertical one stretching to fill the row it sits in so it works between buttons without a height being passed.
layout

Shine Border
A border with light running around it, for the one card or call to action that should be found first. A meteor of light with a fading tail, in any shape, pill included. Pure CSS in a server component, and it holds still for reduced motion.
motion

Skeleton
A placeholder shaped like the content that is loading, with a single travelling shimmer. Hidden from screen readers, so the loading region announces itself once.
feedback

Slider
A single or range slider on the Base UI primitive, with a label, a formatted value that matches what a screen reader announces, and a thumb that grows when picked up.
forms

Sortable List
A list you reorder by dragging a handle, or with the arrow keys once the handle has focus. The other rows move aside on a spring, the rest of each row stays free for text and links, and every keyboard move is announced with its new position.
motion

Spotlight Card
A card lit by the pointer: a soft wash follows the cursor and the nearest stretch of border catches the light. Tracked through CSS variables, so it never re-renders, and keyboard focus inside lights it too.
motion

Stacked Bar Chart
Bars split into the parts that make them up, on TanStack Charts. Layers keep the order you give them in every bar, `percent` compares the mix instead of the totals, and focus groups a whole bar so the tooltip lists every layer.
data display

Stat
A metric card with the value, a coloured change against the last period and a sparkline drawn as plain SVG on the server. Says which direction is good, so falling latency reads green.
data display

Steps
Progress through a fixed sequence, horizontal or vertical, with complete, current and upcoming states and a connector that fills as you go. Collapses to vertical on narrow screens.
navigation

Suggestion Stack
An agent's suggestions as a stack of cards, decided one at a time: apply or skip, or drag the card either way. The next ones peek out behind, and checks show as a split bar.
data display

Switch
A control for a setting that takes effect immediately, with a label wired to it for a screen reader. Optional on and off text inside the track, and the thumb travels on a single transform so the motion stays smooth.
forms

Tabs
Tabs built on the Base UI primitive, so arrow keys, Home and End and the roving tab order come for free. The primitive measures the selected tab and publishes it as a CSS variable, so the underline glides without this component holding a single ref.
navigation

Task List
An agent's plan and its progress: pending, running, done and failed tasks with a progress bar and a count. Built on Trace and stateless, so you pass the current tasks on each update, and each status is written out for screen readers.
feedback

Text Reveal
A headline that arrives word by word, by blur, rise or fade, the first time it scrolls into view. It plays once, the full sentence is in the accessible name from the start, and reduced motion shows the words straight away.
motion

Textarea
A labelled multi-line field that grows with its content using CSS alone, with help text, an error state and an optional character count that warns as you near the limit.
inputs

Theme Toggle
A sun that sets into a crescent moon, and the new theme revealed from the button with a View Transition: a circle, a soft-edged spill or a shutter, measured to the farthest corner. No theme library, no flash, and a setTheme you can call from anywhere.
buttons

Tilt Card
A card that leans toward the pointer in 3D with a highlight sliding across it, then settles flat when the pointer leaves. It is driven by CSS variables with no re-renders, and it stays flat for touch and reduced motion.
motion

Timeline
An activity feed of events with a time, a status dot or a custom marker, and a rail that stops at the last item. For audit logs, deploy histories and notifications.
data display

Toast
Stacked notifications you fire from anywhere with toast.success(), toast.error() or toast.promise(). They fan behind the newest one, expand on hover, take an undo action and swipe away. Mount one Toaster at the root.
feedback

Toggle group
A row of toggles that share a value, or several. One control rather than a row of separate buttons: the selected one is filled and its neighbours stay quiet, and it works for icon-only formatting bars and for labelled density switches alike.
inputs

Tool Approval
An agent asking before it acts: the question first, its arguments one click below, and Allow once, Always allow and Deny in a footer that folds away once answered, leaving a record of the outcome.
data display

Tool Result
One agent tool call and its output: a Trace line that summarises what ran and how it went, over output that follows a running call and folds away when it finishes, with copy and run again.
data display

Tooltip
A short description of a control, shown on hover and on keyboard focus, with an optional arrow. Built on the Base UI primitive and portalled so a tooltip is never clipped by the toolbar or table it belongs to.
overlays

Trace
The steps an agent takes, one line each: reasoning, tool calls, sources, plans and subagent runs. Every line has an icon, a title, a description and a status, sweeps while running, and can open its output, link away, open a dialog, or nest a whole Trace.
data display

Transcript
A transcript that follows the audio: the current line is marked and kept in view, the word being said lights within it, and any line or word seeks back to where it was spoken. One tab stop, arrow keys between lines.
audio

Voice Button
The record button of a voice interface: push to talk or tap to toggle, a live waveform and a running clock while recording, then transcribing, done or try again. You drive the state; it records nothing itself.
audio

Voice Note
One entry in a list of voice notes: when it was recorded, what was said and the recording to check it against. While transcription runs it holds its place with a waveform and placeholder lines.
audio

Voice Orb
The presence of a voice assistant: a liquid WebGL sphere that drifts while idle, gathers light as you speak, stirs while thinking and ripples as it speaks. Painted from your theme tokens, and fed by a level or an AnalyserNode.
motion

Voice Picker
Choose a text-to-speech voice by ear: grouped voice cards in one radio group, each with a play button for a sample beside the radio, and a waveform on the one that is playing.
audio

Waterfall Chart
How a starting amount becomes a final one, on TanStack Charts: revenue bridged through new business and churn, a budget through its line items. Each change floats from where the last ended, gains and losses in their own hues, with a closing total.
data display

Waveform
A row of bars for anything that makes or hears sound. Loops on its own while listening or speaking, follows a level or an AnalyserNode's spectrum when given one, and sends a pulse across while thinking.
audio
ProAvatar Upload
A profile-photo editor: pick or drop an image, place it in the circle with drag, pinch, scroll or the keyboard, zoom from 1× to 4×, then upload the 512 px crop with progress, cancel, failure and retry.
inputs