Every component
183 registry items, each a UI SDK part or primitive an agent can read, styled with the theme's tokens and installed as source with shadcn.
Foundations
- AppearancecreateAppearance and <Appearance>: keep the .dark class, data-theme, data-palette, data-density and data-radius on <html> in sync with a color scheme (system follows prefers-color-scheme live, or light or dark), a theme, a palette, a density (default or compact) and a corner radius (none, sm, md, lg or full), optionally saved between visits. Works in a static file:// page.
- Liquid LensThe SVG displacement filter that data-theme="liquid" refracts floating UI through, rendered only where backdrop-filter can use it.
- ToneThe Tone type: neutral, info, success, warning and destructive, the one status vocabulary of Badge, Alert, StatusPill, Progress, Meter and Toast, plus violet, a category tone that is not a status.
- ButtonUI SDK Button with variants: async pending state, a loading prop with a spinner, focusable-when-disabled, link rendering, and a tooltip with its name (and shortcut) on an icon button. ButtonLink is a Link with the Button look, for calls to action that navigate.
- KbdPresentational keyboard key and key group rendered as kbd.
- ShortcutsKeyboard shortcuts on UI SDK's shared shortcuts: useShortcut with scopes, sequences (g i) and mod, ShortcutScope for a region or an open panel, ShortcutHint drawn with Kbd. Plain keys never fire while typing or composing.
- Shortcuts DialogA ? dialog that lists the shortcuts available where the person is, grouped by ShortcutScope.
- SeparatorUI SDK Separator: horizontal or vertical, announced or decorative.
- LabelUI SDK Label: names any control by htmlFor, including a radio group, slider or switch.
Forms
- FormForms on react-hook-form with a Standard Schema (Zod, Valibot, Effect): FormField binds one registry control by name, pending submit, server errors mapped to fields, a live root error, focus on the first invalid field, and messages in any language or i18n library.
- Form DialogA Form inside a Dialog: a scrolling body with a sticky footer, Escape and outside presses blocked while pending, closes on success and returns focus, asks before discarding unsaved changes, and an optional review step before submitting.
- Step DialogA multi-step form on one schema, in a Dialog or inline: a progress list with aria-current, Next validates only the current step, Back keeps values, focus moves to each step's heading, and a failed submit returns to the step with the error.
- FieldUI SDK Field parts: label, description and validation errors wired to the control; FieldSet with a legend that names the group.
- InputUI SDK Input, InputGroup and InputClear (clears and returns focus).
- TextareaUI SDK Textarea: multi-line field with auto resize and a submit shortcut, labelled by Field.
- Password InputUI SDK PasswordInput styled as a field: a reveal toggle as an icon button with a tooltip that keeps its name while aria-pressed says whether the password shows, floating labels and FormField binding.
- Token InputUI SDK Token Input styled as a field: removable token chips with undo, Backspace and arrow keys, and a labels mode where Enter or a comma commits and a paste splits; agents set it by label.
- File InputUI SDK FileInput styled as a drop zone with a browse button: accept, size and count limits, the chosen files as attachment chips with remove buttons, and why any were left out in the destructive tone.
- Number InputUI SDK NumberInput: typed, stepped and formatted numbers with step buttons, named by Field.
- OTP InputUI SDK OTPInput: one native input shown as slots, with paste and one-time-code autofill.
- Search FieldSearch landmark built with definePrimitive: Enter runs onSearch, Escape clears only when there is text, and agents get a submit action.
- Voice InputA voice input whose visual follows the microphone level in real time, built with definePrimitive: a mic toggle with a ring that grows as you speak, or a composer bar with cancel, a live waveform and a timer. The level comes from a Web Audio AnalyserNode on one shared AudioContext, written as CSS custom properties on animation frames with no React render per frame; useAudioLevel gives it to your own visual and requestMicrophone maps getUserMedia's errors. It doesn't record or transcribe.
- Inline EditRename in place, built with definePrimitive on UI SDK's createInlineEdit: a press, Enter, F2 or typing turns the text into a field; Enter and Tab save, Escape puts it back, blur saves or cancels; validate keeps editing; agents rename(text) and cancel.
- SelectUI SDK Select: trigger, popup list, items with a check indicator, groups and separators, or `options` as data with a clearable none choice. Works inside Field; agents choose by label.
- Native SelectA styled native <select> for mobile-heavy forms, with the same options shape as Select, a placeholder and a clearable none choice. A small primitive reports it to agents, which a bare <select> is not.
- ComboboxUI SDK Combobox: a filtering input with clear and trigger buttons and a popup list. Works inside Field; agents choose by label.
- AutocompleteUI SDK Autocomplete styled as a field: free text with suggestions that filter as you type, matches marked, Clear and Trigger buttons with tooltips, async suggestions through useAsyncOptions, floating labels and FormField binding.
- CheckboxUI SDK Checkbox and CheckboxGroup: checked, unchecked and indeterminate, labelled by Field.
- Checkbox RowCheckboxRow: a UI SDK Checkbox with its label, an optional description and a trailing slot (a badge, a fingerprint, a menu), wired by a UI SDK Field. The whole label toggles it; disabled takes a reason, shown under the label and describing the checkbox. 44px rows on touch, at both densities.
- Radio GroupUI SDK RadioGroup and Radio: pick one with arrow keys, named by Field.
- SwitchUI SDK Switch with its thumb: an on/off setting that sits in a row beside its Field label.
- SliderUI SDK Slider: one value or a range, with a formatted value part, named by Field.
- RatingUI SDK Rating styled as stars that fill to the score: half stars, averages that fill part of a star, a pointer preview, sizes and 44px stars on touch screens.
- ToggleUI SDK Toggle: a button that stays pressed, with variants and sizes.
- Toggle GroupUI SDK ToggleGroup: toggles sharing one value with arrow-key focus, named by Field.
- Segmented ControlUI SDK SegmentedControl: one choice from a row of buttons with a sliding indicator, like a board/table view switch.
- CalendarUI SDK Calendar: a month grid with arrow, Page Up/Down and Home/End keys, single, multiple or range selection, several months, min/max and unavailable dates, locale and timeZone.
- Date PickerUI SDK Date Picker: type a date in the locale's format or pick it from a calendar popup, single or range, with a format hint, an optional clear button and ISO values.
- Date InputUI SDK DateInput styled as a field: a date typed segment by segment in the locale's order, ISO values, min, max and unavailable dates marked invalid, floating labels and FormField binding.
- Date Time PickerA date from the calendar and a time of day as one local "YYYY-MM-DDTHH:mm" value, composed from UI SDK DatePicker and TimeInput, with min/max, a time zone suffix and locale formatting.
- Color PickerUI SDK ColorPicker styled: an area (painted on a canvas in OKLCH, every pixel a colour inside the gamut), hue and alpha sliders, a swatch, a text field for any CSS colour, channel inputs, presets and an eye dropper with a tooltip.
- Prism PickerA hue picker built on optics: a white beam refracts through a glass prism (Snell's law, a Cauchy dispersion curve), a dial turns the prism, and the wavelength that leaves through a fixed exit slit is the colour, from the CIE 1931 observer through OKLCH to sRGB. UI SDK's slider in nanometres, painted additively on a canvas only when it changes, with setWavelength and setHue for agents.
- Sun ArcA time-of-day picker drawn as the sun's real path over a city: sunrise, solar noon and sunset come from a solar-position model for a latitude, longitude and day, and the sky, the light on the water and the lit windows follow the sun's altitude. With a `photo` of the place, its own sky is replaced by the one for the chosen time, the sun stands at its true azimuth and altitude through the photo's lens, and the foreground is relit. UI SDK's slider in minutes since local midnight, with setTime, sunrise, sunset and solarNoon for agents, and calibrate for a photo.
- Sky PhotoReads a photo of the sky locally: its EXIF (orientation, capture time and offset, GPS, compass heading, focal length and 35 mm equivalent) with a small parser of its own, its sky found by a classical skyline finder (colour, brightness and texture, a skyline per column by dynamic programming, holes and masts, a feathered mask) with no model to download, the photo's own clouds and window panes to light at night, and a rectilinear projection from a sun azimuth and altitude to the photo and back, with calibration from one marked point.
- MixerA mixing desk that splits a total between channels: moving one fader moves the unlocked others in proportion, so the channels always sum to the total, and a locked channel stays put. Each fader is UI SDK's vertical slider with an LED meter, each lock a UI SDK toggle, with setChannel, setAll and lock for agents.
- Safe DialA combination dial for a numeric code: turn it and let go, and the number goes into the next place of the code. The dial is UI SDK's slider over its numbers and the code is UI SDK's OTP input, so arrows, Enter, Backspace and typed digits all work, with enter(code) for agents.
- Safe VaultA photographic safe that opens with a combination: SafeDial on its door, and once the app checks the code and unlocks it, the bolts draw back, the door swings open and the camera moves in to a plaque on the back wall that holds your contents as real DOM, mapped onto the wall in perspective. A wrong code shakes the dial. The three.js scene draws in a worker after the controls paint; without WebGL the drawn door stays and the contents show under it.
- Vinyl ScrubberA media timeline shown as a photographic suitcase turntable rendered with three.js: the record turns with the position at 33⅓ rpm and a drag on it scratches back and forth, the tonearm follows the track, and the waveform strip under it is UI SDK's slider in seconds. The 3D scene draws in a worker after the controls paint, with a drawn turntable without WebGL. It controls an HTMLMediaElement or works controlled, with seek, play and pause for agents.
Overlays
- DialogUI SDK Dialog parts: focus trap, Escape, focus restore, dismissible and controller support.
- Confirm DialogUI SDK AlertDialog with an async confirm action: pending, no double submit, closes on success, inline error on failure, data-agent-confirm for destructive actions.
- Confirm ButtonA button that asks twice, built with definePrimitive: the first press arms it (data-armed, its text and name become labels.armed, announced), the second runs onConfirm; it disarms on a timeout, Escape or blur with change reasons, can confirm on a hold, and carries data-agent-confirm.
- Pill DialogA confirm dialog whose answers are glossy 3D capsules, a blue pill that cancels and a red pill that confirms: they lift on hover and focus, and the chosen one grows while the other fades as the dialog closes. UI SDK's AlertDialog underneath, with an async confirm, and data-agent-confirm on the red pill.
- DrawerUI SDK Drawer parts: a modal sheet from any edge (bottom or side), draggable, with focus trap, Escape and focus restore.
- PopoverUI SDK Popover parts on a glass-ready surface: focus moves in, Escape and outside presses close it, focus returns to the trigger.
- TooltipUI SDK Tooltip parts: names or describes its trigger, opens on hover and keyboard focus, Escape closes it, optional shortcut and arrow. ControlTooltip gives an icon-only control its name in a tooltip.
- Hover CardUI SDK Hover Card on the popover surface: a link that previews where it goes on hover or keyboard focus.
- Dropdown MenuUI SDK Menu parts with a button trigger: arrow keys, typeahead, checkbox and radio items, submenus, destructive items and async actions.
- Context MenuUI SDK Menu opened by right-click, long press or Shift+F10 on a focusable area, with the dropdown menu's items.
- CommandUI SDK Command list with search, groups, empty state and Kbd shortcuts, plus a CommandDialog palette with an opt-in mod+K trigger.
- LightboxA UI SDK Dialog that shows one image of a set: previous and next (buttons and arrow keys), a counter, the caption, an open-original link and fit or actual size. Dark variants follow the theme with no flash; agents get next, previous and goTo.
Navigation
- LinkText link with inline, nav, muted, standalone and plain variants: underlined at rest or on hover so it never relies on colour, external and new-tab handling, aria-current, render for router links, an opt-in onFollow that routes plain clicks and gives agents a follow action, and fast navigation on a primary mouse press (fast={false} or data-no-fast-link to opt out); FastLinkRegion and useFastLink do the same for plain anchors.
- Site HeaderA floating pill header for public sites: brand, a named navigation whose links move into a More panel as the bar narrows (measured, in order, no breakpoint), dropdowns for grouped links, calls to action, and a drawer with every link on narrow screens. It sets data-scrolled once the page scrolls.
- TopbarThe header of an application screen: full width and sticky, a bottom border instead of a shadow, leading (a SidebarTrigger or a breadcrumb), centre (search or a command trigger) and trailing slots, and an optional brand. The centre collapses to `centerCompact` on narrow screens. Glass gives it a translucent chrome fill.
- Mobile NavA bottom tab bar for narrow screens: a named navigation of up to five links with the icon above the label, aria-current on the current page, an optional badge, and More, which opens the rest above the bar. Fixed to the bottom above the safe area, 56px targets, hidden above narrow: unless `always`. Glass gives it a translucent chrome fill.
- SidebarApp navigation: a named landmark with groups and items (href or a router link), the current page marked with aria-current, collapsing to an icon rail with tooltips (or hiding, with collapse="hide") and opening in a drawer on narrow screens. The items scroll in a ScrollArea; a SidebarGroup with collapsible folds its items under its label, like a docs section (open, defaultOpen, onOpenChange). Agents collapse and expand it by name. A SidebarTrigger toggles it from elsewhere, like a Topbar, through its controller; useSidebarState wires both and remembers the state.
- Navigation MenuUI SDK Navigation Menu: a named landmark of triggers that disclose panels of links, each panel on the popover surface.
- MenubarUI SDK Menubar: one tab stop, arrow keys between menus, with the dropdown menu's surface and items.
- BreadcrumbPresentational breadcrumb trail: a navigation named Breadcrumb, an ordered list and aria-current on the current page.
- PaginationUI SDK Pagination that works standalone: page, pageCount or total and pageSize, onPageChange with details, overridable labels.
- TabsUI SDK Tabs: arrow-key navigation, automatic or manual activation, controller support, a selected state that reads at 3:1, and a list that scrolls when its tabs don't fit, with edge fades and pointer-only scroll buttons.
- Skip LinkA link to the main content that stays hidden until it takes keyboard focus, then floats at the top start of the viewport above everything else.
Layout
- Page LayoutA page's column: centered at a dense (73.75rem), wide (90rem) or full width, with page gutters and gap-section between blocks, a header slot, and a workspace variant without padding for app-like screens.
- Page HeaderPresentational page header: an eyebrow, a title at the heading level you choose, a description, an actions slot that wraps below the title on narrow screens, a breadcrumb slot and a tabs slot.
- SectionA titled block of a page, composed from Card: eyebrow, title at a heading level, description, top-end action, footer; card, bare or dashed (create tile) surfaces and sm or md padding.
- CardCard parts: a titled card renders as a section labelled by its title, with an eyebrow, a top-end action slot, a heading level on the title and card, dashed or bare surfaces.
- AccordionUI SDK Accordion parts: triggers in headings, Enter and Space toggle, animated panels on the density tokens.
- CollapsibleUI SDK Collapsible: disclosure with aria-expanded, animated height, controller support and a rotating chevron icon.
- Scroll AreaScrollArea: native scrolling with styled scrollbars, edge state and follow-to-end, keyboard-reachable when it overflows. Its own primitive, written for speed from UI SDK's.
- ResizableUI SDK Resizable: panels with named separator handles that move with the pointer or arrow keys, collapse with Enter and can save their layout.
- FloatingA container that sticks to an edge of its nearest container (sticky, fixed or absolute), on the floating elevation: logical sides, safe-area insets, no viewport units. Put UI SDK controls inside, such as a Toolbar.
- CarouselUI SDK Carousel: native scroll-snap slides in a ScrollArea viewport with Previous and Next, arrow keys, indicators and optional rotation; CarouselStatus shows "1 of 3" and useCarouselState reads the page and count; agents page it by name.
- BoardGeneric kanban layout: a named, horizontally scrolling list of columns with headers, counts, actions, collapsible columns agents can toggle by name, groups and an empty slot. With a value, cards move between columns by drag, keyboard and agents (UI SDK's createTransfer).
- Side PanelA non-modal inspector beside a list: a named complementary region, Escape closes it and returns focus to the row, shortcuts declared inside run while it is open, and on narrow screens it stacks below the list, overlays it or opens as a bottom sheet.
Data
- TableSemantic table parts with aria-sort-ready headers and a horizontal scroll area on narrow screens. Cells stay on one line, cut with an ellipsis and a title holding the whole text while they overflow; TableCell wrap lets one wrap.
- Data TableGeneric typed table: sortable columns with aria-sort, optional row selection with a mixed select-all, loading and empty states, and pagination through renderPagination. Sort, selection and page are controlled or not, and agents can sort, select and page it.
- Filter BarA UI SDK Toolbar of filters with one tab stop and arrow keys, a search field inside it, labelled fields aligned on their bottom edge, and a reset button that shows while filters apply.
- ChartRecharts v3 composed with Eskais tokens: ChartContainer maps a config to --color-<key> variables (light and dark), popover tooltips and legends, and ChartDataTable renders the same data as a table for screen readers and agents. The container is a figure that requires a name.
- StatSummary figures: Stat, StatLabel, StatValue (a number, a Quantity or a node), StatHint, StatDelta (a change with its direction in words) and StatMedia (an icon in a tone chip at the end), in a responsive StatGroup list.
- Retro TVA 1980s tube TV in perspective, as a dashboard widget: any children render on its screen in green, amber or white phosphor, behind curved glass with scanlines, a vignette, a flickering glare and glow, in a wood cabinet with knobs, a speaker grille, an LED and a power button (UI SDK's toggle). Switching off collapses the picture to a line, then to a dot that fades; TvPowerOff plays it over the whole page, for logging out.
- Description ListTerms and their details in a dl: stacked, inline (side by side, stacked again in a narrow container) or a grid of columns. Spacing from the role tokens, copyable details with an agent copy action, and a dash for an empty value that screen readers read as an overridable label.
- List ItemDense, Linear-style rows that also work as entity cards: List, ListGroup (label and count), ListItem with leading, title, subtitle, status, meta, trailing and actions, row actions that keyboards and agents reach without selecting the row, plus ListItemTitle, ListItemMeta, ListItemActions and IconTile. Agents get select(id), and run(id) per row action.
- TreeUI SDK Tree styled as indented rows with guide lines: a file explorer from paths with folder and file icons, checkable trees with mixed branches, lazy branches, links and a flat list for virtualizing.
- SortableReorder a list or grid by drag, keyboard and agents, built with definePrimitive over UI SDK's createReorder: a controlled string[] order, a draft while an item moves, an optional drag handle, checked items that move together, announcements with overridable labels, a FLIP slide on the motion tokens, and agent actions move(id, index) and reorder(order).
- Stage TrackWhere a piece of work is in a configurable pipeline (branch, PR, dev, prod): StageTrack shows every stage in a row, reached ones filled and the current one emphasised, or only the current one as a StagePill. StageFilter is a toggle group with a count per stage.
- AvatarUI SDK Avatar with sizes: a real img that falls back to initials while loading or on error.
- BadgePresentational badge: tone (neutral, info, success, warning, destructive) for meaning, variant (default, secondary, outline) for an untoned look. Tone values passed as variant still work but are deprecated.
- Dependency ChipsA named list of toned chips that truncate long labels, collapse past max into a +N chip, and become UI SDK Buttons agents can press when onSelect is set.
- AttachmentsAttachmentStrip: a horizontally scrolling strip of image thumbnails and file chips (icon, name, type and size). Images open a Lightbox, files open their link, max adds a +N button. AttachmentThumb renders one. Agents get openAttachment(id).
- Image CropperUI SDK ImageCropper styled: a selection that dims the rest of the image with a grid while dragging and eight handles, or a round frame the image pans and zooms under, with zoom, rotate and flip, and cropImage.
- Image ScanAn image under analysis, from a controlled status: a preview, a scan (a turning sweep or a progress line over the image, a progress bar, steps and Cancel), the detected regions as buttons over the image with a legend, or an error with Retry. Announces each change; agents get scan, cancel, retry and selectRegion.
- QuantityHonest values: formatQuantity() and QuantityValue show unknown as a dash, estimated with ~ and screen reader text, and the source in the title.
- Relative TimeformatRelative() and formatInstant() on Date + Intl, a RelativeTime <time> with the absolute instant in its title, and a useNow hook that pauses while the page is hidden.
- Expiry CountdownExpiryCountdown and useExpiry: the time left until a code or request expires in a role="timer", shown each second and announced politely once a minute and at 30, 20 and 10 seconds, with one timeout per second while the page is visible and none while it's hidden; useExpiry runs a callback once when the time passes.
Server data
- Server Data TableA DataTable over a PageSource: the server filters, sorts and pages; page numbers, previous and next, or load more follow what the source gives; DataState covers loading, error with retry and empty; a polite status says "Showing 21–40 of 312" after each load; filters, sort and page can live in the URL.
- Server ListA List over a PageSource that grows as you scroll: ListItem rows, virtualized past 200, one tab stop with row navigation, the next page when the end comes into view, and a visible Load more button for keyboards and agents.
- Filter SearchThe search box of a filter schema: shows the text at once and commits it after the page controller's 250 ms debounce, Enter commits, Escape clears. FilterScope gives filter UIs their schema and controller and lets agents filter by a field's label.
- Filter ChipsFilters as chips in a FilterBar: one chip per active filter that opens an editor for its field, a button that removes it, Add filter for the others, and reset. Picks apply at once; typed values on Enter or when the editor closes.
- Filter PanelEvery filter of a schema in one form, applied together: a SidePanel beside the results on wide screens, a bottom Drawer sheet on narrow ones; Apply and Reset.
- Filter FieldThe control for one filter schema field, named by its label: an input for text, a select or checkboxes for options, a select for a boolean, a comparison and numbers, date pickers, or a ServerCombobox for remote options.
- Server ComboboxA Combobox whose options come from a PageSource, searched on the server as you type: requests wait for typing to pause and are aborted when replaced, the next page loads at the end of the list, and the server's order is kept. With multiple, choices show as chips.
- Server DataReact hooks for a PageSource on TanStack Query, behind signatures of their own: useServerPage, useServerTotal, useServerInfinite, useServerQuery, useInvalidateSource, usePatchSource, useHoldSource, useSourceMutation and usePageController, with DataProvider and createDataClient for the defaults.
- Page SourceA backend-agnostic contract for paged data (PageSource, PageRequest, PageResult), the kit adapters are built with, an in-memory arraySource, and createPageController, which derives the request, resets paging, debounces search, syncs the URL and writes the live region's status. Backend adapters are items of their own: page-source-rest, page-source-spring, page-source-cursor, page-source-relay and page-source-link.
- Filter SchemaTyped filters declared once: defineFilters with text, options, boolean, number, date, dateRange and remoteOption fields, FilterValues inferred from it, a canonical AST, serializers for query params, JSON and q-only search, and a URL codec that round-trips readable params. Backend query languages are items of their own: filter-rsql, filter-odata, filter-spring and filter-graphql.
- URL StateRouter-agnostic URL state: one UrlStateAdapter shape over the query string (historyUrlState), a hash router's query (hashUrlState) or memory (memoryUrlState), and useUrlState to read and write it.
- URL RouterA router adapter for blocks that keep state in the URL: read the location, navigate, build an href and follow changes. hashRouter keeps a hash route's path (#/devices?device=a1), historyRouter the path and query string, memoryRouter is for tests; wrap your own router's API in the same shape.
Git
- Commit HistoryA commit trail, one line per commit: a graph lane down the side, merges collapsed to one row that open their branch on a curved side lane, a pending commit that spins until it lands, and a commit's details inline under its row. Virtualized for 50,000+ commits; agents read and act on commits by name.
- Server Commit HistoryA CommitHistory over a PageSource: older commits load as the end scrolls into view and from a Load more button, the header counts the source's total, and the graph carries on across pages.
- Git TreeA repository's files at a commit on UI SDK's Tree: folders first with lucide icons, changed files marked added, modified, deleted or renamed in their tone, folders that hold a change marked too. Virtualized for 100,000 files; agents open and expand by path.
- Repository SelectA select for one git repository out of several: the trigger shows the name, each option its path, the branch checked out and its state (uncommitted, ahead, behind, no remote, up to date). On UI SDK Select, so keyboard, typeahead and agents work as in any select.
- Git ChipInline chips for git names in text: GitFileChip (a file icon and the path in mono) and GitBranchChip (a branch icon and the name).
- Commit GraphThe model behind CommitHistory: commits, a one-pass nesting of merged branches under their merge, the rows that show with merges open or closed, git log --graph style lanes laid out lazily, and a commit message parser for file and branch chips.
Feedback
- AlertPresentational alert with the shared tones (neutral, info, success, warning, destructive), a trailing action slot, long text that wraps, and an opt-in live role.
- ToastUI SDK toasts: ToastStack renders a styled, announced region with a tone icon per type; toast() and createToaster() add toasts with actions, cancel and timed dismissal.
- Status PillPresentational status pill with the shared tones (plus muted) and an optional dot that pings three times when its status changes (pulse="always" keeps pinging, which is costly in lists and boards), and StatusDot: a coloured dot with a screen reader label. The ping stops under reduced motion.
- SpinnerAn SVG spinner in currentColor, sized like an icon (sm, md, lg). Decorative by default; with a label it becomes a role=status region. Pulses instead of spinning under reduced motion.
- SkeletonPresentational loading placeholder, hidden from assistive technology, that stops pulsing under reduced motion.
- ProgressUI SDK Progress: a task's progress, determinate or indeterminate, with label and value.
- MeterUI SDK Meter: a reading within a known range, like storage used, as a bar or a ring gauge.
- EmptyPresentational empty-state parts in three sizes (inline, panel, page): media, title, description and actions.
- StatesScreen states that never lie: LoadingState (spinner or skeleton, busy, label for screen readers), ErrorState (alert, retry, collapsible details) and DataState, which picks loading, error, empty or your content from a status and never shows empty while pending or after an error.
Agent tasks
- ConversationA chat or agent thread: a role="log" that follows new messages while the reader is at the end, stops when they scroll up and shows a "new below" pill that jumps back (smooth unless reduced motion), keeps a streaming message in view, loads older messages above without moving the view, and server renders. ConversationMessage is an article named by its author, with avatar, relative time and data-from (user, assistant, agent, system, tool); ConversationComposer composes Textarea and Button. Agents read messages and call jumpToLatest.
- Activity LogWho changed what, and when, with undo: createActivityLog records the page's UI SDK control changes (from people, agents and the app) and the app's own records, and steps back and forward through them. ActivityLog lists them newest first; pressing an entry seeks to it, Undo and Redo bind Cmd/Ctrl+Z and Shift+Cmd/Ctrl+Z outside text fields, and undoToast shows a toast with Undo. Agents call undo, redo and seek; a seek that undoes more than confirmAbove entries needs a person (data-agent-confirm).
- Agent Task BoardThe full board for AI agent tasks: filters, search, a board or sortable table view, a summary, collapsible status columns with ready and waiting groups, a detail dialog, drawer or side panel, compact density on narrow hosts, snapshot and live modes, English and Spanish labels, and agent actions to select, filter, switch views, open threads, decide proposals and move tasks between columns.
- Agent Task Board coreThe non-visual core of AgentTaskBoard: filter, group, sort and summarize tasks; English and Spanish labels; and the board and proposals primitives whose agent actions select, filter, switch views, open threads and decide proposals.
- Task CardA compact agent task card: id, two-line title, profile, active agent, liveness, acceptance bar, attempts and cost, dependency chips, blocker with its retry time, decision and analysis-mode markers, and proposal actions in live mode. A stretched UI SDK Button selects it without nesting other controls.
- Task Detail PanelAn agent task's goal, acceptance and evidence, dependencies that select their task, the pending decision with proposal actions, usage and the attempt timeline. TaskDetailPanel shows it as a non-modal panel; TaskDetailDialog as a modal dialog or a right-side drawer. Escape and a close button close either.
- Proposal ActionsApprove and Reject for one task proposal: async pending with no double submit, inline errors, an on-screen reject confirmation, and agent access set by agentApproval (confirm, allow or deny). Renders nothing in snapshot mode.
- Attempt TimelineAn agent task's attempts on the UI SDK Timeline: kind, status, times, configured and executed route with earlier routes in a popover, context, repairs, checks, commits, blockers, thread links agents can press, usage per attempt and older attempts behind a toggle.
- Acceptance ListA list of pass, fail and unverified criteria with evidence, a segmented AcceptanceBar on the UI SDK Meter with an accessible summary, and AcceptancePopover, a compact header trigger that opens the list.
- Agent BadgeProvider, model and effort of an AgentRef: compact for cards (one line, long model ids cut in the middle, full text in title) or detail for panels, with a marker when the agent that ran isn't the one requested.
- Liveness IndicatorA toned dot and label for an agent's computed liveness (running pulses, suspect_dead is destructive) and the time since its last activity, with now, locale and timeZone passed through.
- Task StatusTaskStatusPill, AttemptStatusPill and ContextModePill: StatusPill tones and overridable labels for agent task, attempt and context mode values, with the source thread for reuse and fork.
- UsageToken, time and cost usage of an agent task: UsageStat for a card and UsageTable on Table, with compact counts, the exact value in the title, honest unknown and estimated values, and summaries side by side as columns.
- Agent task typesTaskView, AttemptView, AgentRef, UsageSummary and ThreadRef: the data contract of the agent task components, plus effectiveAgent and agentDiffers.
Blocks
- Landing PageA whole landing page made only of blocks (Hero, SectionHeading, Bento, Steps and SiteFooter, with a header slot), with its content in one object: the template to copy and edit.
- InboxA keyboard-first inbox block: a virtualized List of messages, j/k and Enter to open a SidePanel inspector with single-key actions, x to select for a bulk action and ? for every key.
- Master DetailMasterDetail: a list with a detail pane, side by side on wide containers and stacked below 42rem with a Back button. Controlled or uncontrolled selection, optional URL sync through a router-agnostic adapter (hash routers included), j/k that follow focus, a detail that collapses to a rail or resizes, remembered under a storageKey, and focus that moves to the detail's heading and back to the row. Agents open and close items by the block's name.
- Dashboard GridDashboardGrid: a row of stats over a container-query grid of cards (one column, two from 42rem, `columns` from 64rem) where rows are at least one height and cards in a row share it, so they line up, keep their size from loading to loaded and grow their row rather than clip. DashboardCard spans columns and rows and loads through DataState (a skeleton, the error with Retry, an empty title); DashboardChart fills a card and is named by its title; DashboardMeter centres a ring meter in one; DashboardStats and DashboardStat (with a StatDelta in `delta`, and `icon` with `tone` for a KPI chip) draw placeholders of the value's height.
- Settings PageSettingsPage: a section navigation that sticks beside the sections on wide containers and becomes a section picker on narrow ones, marking the section being read (IntersectionObserver). Going to a section scrolls by id and focuses its heading, so it works under hash routers; the section can live in the URL through createUrlParam. SettingsSection, SettingsRow (a label, a description and the control on the right, stacking when narrow), SettingsFacts (a DescriptionList for read-only facts) and SettingsDangerZone with SettingsDangerAction rows that confirm through ConfirmDialog and need a person's approval for agents.
- Document WorkspaceA notes or docs workspace: an explorer, tabs, breadcrumb, toolbar, the document (edit or read), an aside for backlinks, properties and the outline, a status bar with the save state, an alert slot and Ctrl/Cmd+P quick open. Resizable, collapsible columns when its container is wide, drawers when narrow; named landmarks and toggles agents can press. Also DocumentOutline and DocumentQuickOpen.
- HeroThe top of a landing page: an eyebrow chip, a title with an optional muted second line, a description, actions, a copyable install command and an aside for a live demo, side by side or centered by container width, over a token-drawn grid or glow.
- Section HeadingThe heading of a page section: eyebrow, a large title, a description and actions, start-aligned or centered, with the heading level and id the enclosing section names itself by.
- BentoBento and BentoTile: a container-query grid of Card tiles that spans columns on wide containers, falls to two columns and then one, and can make a whole tile a link without covering the controls inside.
- StepsSteps and Step: an ordered list with numbered markers, a title, a description and any content per step, side by side on wide containers and stacked on narrow ones.
- Site FooterA page footer: brand, description, groups of links as named navigation landmarks, and a bottom line.
- Docs LayoutDocsLayout, an app shell for documentation: a topbar slot, a sidebar that sticks under it at the full remaining height (a drawer on narrow screens), a breadcrumb slot above the page in the main column, the main landmark and a sticky table of contents. Also DocsToc (headings marked as you read with IntersectionObserver), DocsPager and DocsBreadcrumb.
- ShellShell, an application's whole frame from its routes: a skip link, a Topbar (sidebar trigger, brand, ⌘K search, actions), a grouped Sidebar that sticks under it, collapses (remembered) and is a drawer on narrow screens, a command palette whose Go to group reaches every route, a MobileNav bottom bar with More on narrow screens, and the main landmark. Router-agnostic: onNavigate for a history router, #/route hrefs for a hash router, or plain fast links.
Accounts
- Auth PageAuthPage: a centred, brand-led page for signing in, registering from a one-time link and recovering an account, with a logo, a title, a description, one primary action, other options, an alert slot and footer links. `status` (idle, working, error, success) marks the action pending and announces `workingLabel` while a ceremony such as WebAuthn is open, shows the error in a live destructive Alert with a retry, and swaps the actions for a success slot. It holds no auth logic.
- Account MenuAccountMenu: the signed-in user in a Shell or topbar. The trigger shows an avatar (or initials) and the name, which hides on narrow screens; the menu has a header with the name, email and an optional role Badge, your app entries (Devices, Security, Invite) and sign-out, which can ask first through ConfirmDialog, whose confirm then needs a person's approval for agents.
- Invitation PanelInvitationPanel: an admin creates an invitation and gets a one-time link, shown once with a copy button, a live expiry countdown that switches to expired, and a revoke behind a confirmation; below, the pending invitations with role, creator, expiry and revoke, through DataState. Agents can create, copy and revoke, and never read the link.
- Pairing CodePairingCode and PairingCodeInput for pairing a device by code (OAuth device authorization, RFC 8628). PairingCode shows a short user code big, monospaced and grouped (BCDF-GHJK), spelled out character by character for screen readers, with a copy button, and can compare it with the code on the other screen: `confirm` asks whether they match, `enter` checks a typed code group by group. PairingCodeInput is the verification page's field: it normalizes case, drops characters outside `alphabet`, inserts the separator as the person types or pastes, and calls `onComplete` once the code is full. `agentHidden` keeps the code from agents.
- Device ApprovalDeviceApproval: approve or deny a device that asked to pair. It shows the device's name, kind and detail, the pairing code through PairingCode with its comparison, a security warning, what the device gets and what it asked for but won't get (with why), items the person ticks to include (a marked one, like a replacement, needs its own confirmation), a countdown to the request's expiry, and Approve and Deny with pending and error states. Approve waits for a person when an agent presses it, stays off while the codes don't match, nothing is selected or a replacement isn't confirmed, and after expiry; agents never read or type the code.
- Device Code PromptDeviceCodePrompt: the "go to this address and enter this code" step of a sign-in by device code (OAuth device authorization, RFC 8628) at a third-party provider. The code through PairingCode (grouped, monospaced, spelled out for screen readers, with copy), the verification page as an external link that opens in a new tab, an Open button that prefers the address with the code filled in, an optional copy of the link, and a countdown that announces itself sparingly and switches to expired. Agents never read the code or the link by default.
- Connected AccountConnectedAccount: one account linked at a third-party provider, in a card with the provider's name and logo, a status (connected, pending, expired, disconnected) as a toned StatusPill, facts in a description list, and Connect, Reconnect, Disconnect and Cancel by status, each with pending and error states. While a sign-in waits for approval on the provider it shows your waiting content, like a DeviceCodePrompt, with a Cancel it can also call. Disconnect asks first, and its confirm waits for a person when an agent presses it.
- Secret ListSecretList: stored secrets, like API keys, as rows with their name, a SecretFingerprint (•••• abcd), a configured or missing StatusPill, created, updated and last-used dates, and Replace and Delete. The data type has no value field. Loading, empty and error come through DataState. With selectable, each row gets a checkbox (disabled with a reason per secret) and an optional tri-state select all. Agents can replace and delete by id (delete waits for a person), and select by name or id.
- Secret FingerprintSecretFingerprint: the masked display of a stored secret, •••• 1a2b in a monospace font, from the few characters your server derives. The mask is hidden from screen readers, which hear "Ending in 1a2b" (labels). It takes only fingerprint, a string or null, so the secret itself never reaches it.
3D
- Model ViewerA 3D model (glTF or GLB) in a stage that turns with drag, wheel, pinch and keys, with views, zoom, reset, animation clips, morph weights (a Float32Array aligned with the target names, or by name) and ARKit expressions eased in the render loop, and an optional floor (a grid, a contact shadow) in the theme's colours. A new model fades in over the old one, keeping its weights. controls="gestures" keeps drag and keys without the bar, for controls of your own through handleRef and useModelViewerControls. The three.js scene (react-three-fiber) is a separate chunk, loaded when the stage nears the viewport and only with WebGL; a poster stands in until then and without WebGL. Agents get rotate, zoom, reset, setView, play, pause and selectClip.
- Model ScanA photo becoming a 3D character, driven by an engine's events through props: landmark groups light up over the photo as meshes while the background dims around the person (from the engine's mask, or a hull around the pose landmarks), the person's pixels fly as a point cloud onto the base model while the camera turns, a shimmer reveals it and a pulse runs across the floor, streamed weights reshape it, and it hands over to orbit. Floating glass controls follow the stage: a style picker and Make 3D, a progress ring with Cancel, a toolbar of views, the clip, Download and Start over, and the error with Try again. Reduced motion crossfades instead. Announces each stage; agents get start, cancel, retry, restart and download.
- Live SkyThe sky over a place right now, seen looking up between buildings: real weather from Open-Meteo (or your fetcher) drawn with WebGL over a ray-traced street (granite, render with blinds, balconies, A Coruña's glazed galleries) lit by the sun's direction, wet in rain and with windows lit at night; clouds from the cloud cover, and rain that falls toward the viewer with depth, slants with the wind and runs down a pane of glass. Drizzle, rain and downpour, snow and fog look different; reduced motion shows stills with a slow crossfade. A place search, a geolocation button, and setLocation, geolocate and refresh for agents.
Signs
- LED MatrixA bus or pharmacy dot-matrix sign: round LEDs behind smoked glass in an aluminium housing, in amber, red, green or white. Messages scroll right to left a dot at a time, or hold a page at a time, in turn, drawn from its own 5×7 bitmap font for Latin-1 and €. A canvas paints only when a dot changes, only on screen and in a visible tab; reduced motion pages instead of scrolling. A marquee live region with the message, a pause toggle, and setMessages, pause and resume for agents.
- Neon SignA neon tube sign on a brick or dark wall, for a status read at a glance: on air, open, recording. Each letter is a tube of tinted glass that strikes with a flicker when the sign turns on, then glows steady, casting its colour on the wall, with a rare buzz on one letter; reduced motion fades it on and never buzzes. A status named by its label, with turnOn and turnOff for agents. Tilt Neon from npm (OFL-1.1).
- ChalkboardA bar or café chalkboard in a mitred wooden frame, with a ledge, chalk and an eraser: headings, notices, lists and menus with prices on dot leaders, hand-written in grainy chalk on slate or green board. The words stay real, selectable text. It can write itself in line by line with a clip reveal, and new content makes the eraser wipe the old words and leave a smudge first. A region named by its label, with write for agents. Caveat from npm (OFL-1.1).
- TeletextTeletext pages on a 40×25 grid in the eight broadcast colours: double-height rows, 2×3 mosaic block graphics, flash, a header with the page number, service and clock, and the four coloured Fastext keys. Type three digits to tune, and the counter searches the broadcast before the page shows; subpages rotate. It fills its parent at 4:3 and scales the grid to it, so it fits a TV's screen. Pages are data; each is a region with a heading and real text, with goToPage and fastext for agents.
Editor
- Code BlockCodeBlock and CodeTabs: syntax highlighting for ts, tsx, js, jsx, json, css, html, bash, md and diff with Lezer parsers loaded on first use, rendered as React elements in syntax tokens that hold 4.5:1; a filename header, copy (an agent action too), line numbers, highlighted lines, wrap and a max height. Code for inline code.
- Log ViewerLogViewer: a live log or terminal output viewer for any process. createLogStore takes lines from anywhere (append, or write for raw chunks with partial lines) into a bounded buffer and notifies once per frame; the viewer renders only the lines in view, on UI SDK's virtualizer inside a ScrollArea. It follows the end until the reader scrolls up, then shows Jump to end with a count of new lines (End or the button follows again); filters by source (a ToggleGroup, sources coloured with chart or tone colours) and by search; renders ANSI colours on theme tokens; marks error lines (by level or an isError pattern) and steps through them with F8 and Shift+F8; copies the shown lines or a selection as plain text; wraps on demand. A role=log with aria-live off and a polite status that announces new errors at most every 5 seconds. Agents read the shown lines and call filter, search, nextError, previousError, copy, jumpToEnd and setWrap.
- ANSIparseAnsi and stripAnsi read a line of terminal output in one linear pass: SGR codes (the 16 colours, 256 colours and truecolor in the semicolon and colon forms, bold, dim, italic, underline, inverse, strikethrough, reset) become styled runs, and every other escape sequence, OSC string (titles, hyperlinks), control character and bidi override is dropped; a carriage return redraws the line. The text comes back as strings, never markup. ansiCssColor maps a terminal colour to theme-aware CSS that clamps its lightness to --ansi-lightness-min and --ansi-lightness-max, for 4.5:1 on muted in light and dark.
- Markdown EditorA Markdown editor on CodeMirror 6 with a Typora-like live preview: the document is the Markdown text, so loading and saving keep every byte. Marks show only while the caret is inside their span; headings, bullets and quotes never show theirs; tables render as tables off the caret; frontmatter stays as written. Slash and [[ menus, a one-row toolbar with an overflow menu, a ref handle for host menus and outlines, English and Spanish labels, and agent actions (getMarkdown, insertText, replaceSelection, insertWikilink, toggleFormat, setHeading, toggleTask; setMarkdown needs approval).
- Markdown ViewRenders Markdown (CommonMark, GFM tables, tasks and strikethrough, [[wikilinks]] and ![[embeds]]) to React elements with the Lezer parser, fenced code as a highlighted CodeBlock: raw HTML shows as text, only http, https, mailto and tel links become links, leading YAML frontmatter is hidden or shown as properties, and each top-level block is memoised so long notes re-render only what changed. Also extractHeadings for an outline and parseFrontmatter.
- Markdown Editor LanguagesEvery code language CodeMirror knows, for MarkdownEditor's fenced code blocks; each language loads the first time a block names it. Opt-in, since the list adds about 230 KB of shared chunks to most bundles.
Diff
- Git DiffA patch or a list of file diffs for review: per-file headers (rename arrow, status chip, +/- counts and bar, mode change, collapse, viewed), a tree of changed files to jump between them, unified/split and wrap controls, one virtualized document for 500-file patches, j/k and n/p, line selection for comments, and agent actions openFile, nextHunk, previousHunk, markViewed and getHunk.
- Text DiffCompares two strings: unified or split, line numbers, unchanged regions folded behind Expand N lines, changed words highlighted, syntax colours by language, word wrap, line selection and find in page; inputs past 200k characters diff in a Web Worker.
- Diff ViewThe renderer behind TextDiff and GitDiff: every file's lines in one virtualized scroller (UI SDK createVirtualizer), unified or split, folded unchanged regions, changed-word highlights, Lezer syntax colours parsed in slices and applied only to the lines on screen, one tab stop over the lines (createGridFocus), j/k and n/p between hunks and files, Shift ranges for comments (onLineSelect), find in page across folded and off-screen lines, and agent actions.
- Diff engineLine diffs with histogram (default, git's most readable for code) or linear-space Myers with a cost cut, git's slider placement, hunks with context and the enclosing-definition heading, whitespace options, binary and size guards; changed words or characters within a line; and diffTextAsync, which runs in a Web Worker past 200k characters. The unified-diff parser and printer is the diff-patch item. No dependencies.