# HorizonUI > HorizonUI is a React 19 design system for IDEs, agent consoles and dense desktop tools: window chrome, dock panels, code surfaces, data grids and a full AI kit on one token set, light and dark, two densities. Built on Tailwind 4 and Radix. Package: @horizonloop/ui (Apache-2.0). Every component renders realistic demo content when given no props; passing any data prop switches the demo off. Wrap the app in HorizonProvider. Native libraries from https://github.com/horizon-loop/horizon-native: Jetpack Compose for Android and Compose Desktop as the Maven Central artifact com.horizonloop:horizon-compose, and SwiftUI for iOS (product HorizonMobile) and macOS (product HorizonDesktop) as a Swift package from that repo URL. Rust on GPUI from https://github.com/horizon-loop/horizon-gpui, by git tag (not on crates.io): horizon = { git = "https://github.com/horizon-loop/horizon-gpui", tag = "v0.4.0" }; macOS. ## Docs - [Install guide for coding agents](https://horizonui.dev/install.md): find the project's framework, then its steps and versions - [Getting started](https://horizonui.dev/docs/index.md): install, HorizonProvider, theming and density, the demo rule, the AI gradient rule - [Everything in one file](https://horizonui.dev/llms-full.txt): getting started, install, every component page and the A2UI instructions - [Components as data](https://horizonui.dev/docs/components.json): every component's props, stories, keyboard and native runtimes - [Kitchen sink](https://horizonui.dev/kitchensink/): every component, live, light and dark - [A2UI catalog](https://horizonui.dev/a2ui/v1/catalog.json): HorizonUI as an A2UI 1.0 catalog for generative UI, with renderers for web (@horizonloop/a2ui), Compose (Android, desktop, iOS), SwiftUI, GPUI and zgx (https://horizonui.dev/a2ui/) ## Foundations Provider, layout, trays, grooves, scroll areas and split panes. - [HorizonProvider](https://horizonui.dev/docs/components/horizon-provider.md): Root of a HorizonUI tree: applies tokens via data attributes and provides tooltips. - [Stack](https://horizonui.dev/docs/components/stack.md): Vertical flex layout with a fixed gap scale. - [Inline](https://horizonui.dev/docs/components/inline.md): Horizontal flex layout; cross-axis alignment defaults to center. - [Divider](https://horizonui.dev/docs/components/divider.md): 1px hairline; with a label the line splits around the text. - [Groove](https://horizonui.dev/docs/components/groove.md): Separator between groups inside a Tray: one 1px groove line. - [Tray](https://horizonui.dev/docs/components/tray.md): Raised tactile container for toolbars, action bars and palettes. - [ScrollArea](https://horizonui.dev/docs/components/scroll-area.md): Radix scroll area with a thin overlay thumb that fades in on hover. - [SplitPane](https://horizonui.dev/docs/components/split-pane.md): Two resizable panes with a 1px divider and a 6px hit area; arrow keys resize by 16px. - [Kbd](https://horizonui.dev/docs/components/kbd.md): Keyboard shortcut rendered as keycaps. - [VisuallyHidden](https://horizonui.dev/docs/components/visually-hidden.md): Text for screen readers only: kept in the accessibility tree, hidden on screen (an icon-only control's label, a state a colour already shows). - [Portal](https://horizonui.dev/docs/components/portal.md): Portals children while re-wrapping them in the current theme and density. - [FileIcon](https://horizonui.dev/docs/components/file-icon.md): File/folder icon: tinted Lucide glyph for structural kinds, monogram badge for languages. ## Actions Buttons, keycaps, toolbars and segmented controls. - [Button](https://horizonui.dev/docs/components/button.md): The primary action control. - [IconButton](https://horizonui.dev/docs/components/icon-button.md): Square icon-only button with an accessible name and a tooltip. - [Spinner](https://horizonui.dev/docs/components/spinner.md): Indeterminate 270 degree arc. - [Key](https://horizonui.dev/docs/components/key.md): The tactile toolbar key: a keycap (or, in a toolbar, a ghost key) with an icon, a tooltip and an optional live dot. - [SplitButton](https://horizonui.dev/docs/components/split-button.md): A main action plus a chevron that opens related actions. - [ButtonGroup](https://horizonui.dev/docs/components/button-group.md): Groups related buttons; attached joins them into one segmented bar. - [ToggleButton](https://horizonui.dev/docs/components/toggle-button.md): A button that stays on: Radix Toggle semantics (aria-pressed). - [SegmentedControl](https://horizonui.dev/docs/components/segmented-control.md): Exclusive choice in a pill well; a raised keycap slides to the selection. - [Toolbar](https://horizonui.dev/docs/components/toolbar.md): Toolbar on a raised pill tray; arrow keys move between its keys. - [ToolbarSeparator](https://horizonui.dev/docs/components/toolbar-separator.md): One-line divider between key groups, 4px clear on each side beyond the toolbar gap. - [ToolbarSearch](https://horizonui.dev/docs/components/toolbar-search.md): Search well pill with a shortcut keycap; clicking opens search (command palette). - [Link](https://horizonui.dev/docs/components/link.md): Inline text link. ## Inputs Sunken fields, choices, pickers and a shortcut recorder. - [FormField](https://horizonui.dev/docs/components/form-field.md): Label, hint and validation message around an input; wires id and aria-describedby through context. - [TextField](https://horizonui.dev/docs/components/text-field.md): Single-line text input in a sunken well. - [TextArea](https://horizonui.dev/docs/components/text-area.md): Multi-line text input in a sunken well. - [SearchField](https://horizonui.dev/docs/components/search-field.md): Search input (type="search"): magnifier, clear button when non-empty, optional shortcut hint, spinner while loading. - [NumberField](https://horizonui.dev/docs/components/number-field.md): Numeric input with stacked stepper chevrons. - [InlineEdit](https://horizonui.dev/docs/components/inline-edit.md): Text that turns into an input on click or Enter. - [ShortcutInput](https://horizonui.dev/docs/components/shortcut-input.md): Records a keyboard shortcut. - [Checkbox](https://horizonui.dev/docs/components/checkbox.md): Checkbox with a well box that turns to ink when checked; the check mark draws in. - [RadioGroup](https://horizonui.dev/docs/components/radio-group.md): Exclusive choice. - [Radio](https://horizonui.dev/docs/components/radio.md): One radio with its label; place inside a RadioGroup. - [Switch](https://horizonui.dev/docs/components/switch.md): On/off switch: a round well track that fills with the raised accent when on, and a pill key with two grip ridges that slides on a spring. - [Select](https://horizonui.dev/docs/components/select.md): Single choice from a list. - [Combobox](https://horizonui.dev/docs/components/combobox.md): Type-to-filter choice: an input in a well with a tray listbox below it. - [TagInput](https://horizonui.dev/docs/components/tag-input.md): Free-form tags: removable chips plus an inline input. - [Slider](https://horizonui.dev/docs/components/slider.md): Slider with a well track, keycap thumbs and a value bubble while dragging. - [ColorSwatchPicker](https://horizonui.dev/docs/components/color-swatch-picker.md): Radiogroup of categorical colour swatches; the value is the token name. - [FileDrop](https://horizonui.dev/docs/components/file-drop.md): Dashed drop zone: drag files in, or click / press Enter or Space to browse. ## Data Badges, avatars, cards, stats, trees and four kinds of table. - [Badge](https://horizonui.dev/docs/components/badge.md): Small status label. - [Tag](https://horizonui.dev/docs/components/tag.md): Neutral label chip with an optional categorical dot, icon and remove button. - [ResourceChip](https://horizonui.dev/docs/components/resource-chip.md): Reference to a project, repo or service: a coloured monogram plus its name. - [Counter](https://horizonui.dev/docs/components/counter.md): Compact count bubble for tabs, lists and notifications. - [DeltaPill](https://horizonui.dev/docs/components/delta-pill.md): A metric value with its change: mono value plus an arrow and percentage. - [Avatar](https://horizonui.dev/docs/components/avatar.md): Person or agent avatar. - [AvatarStack](https://horizonui.dev/docs/components/avatar-stack.md): Overlapping avatars with a "+N" overflow chip. - [StatusDot](https://horizonui.dev/docs/components/status-dot.md): 8px status indicator with an optional label. - [StatusPill](https://horizonui.dev/docs/components/status-pill.md): Keycap status readout: icon plus a mono caps "LABEL ยท DETAIL". - [Tooltip](https://horizonui.dev/docs/components/tooltip.md): Hover and focus label. - [Card](https://horizonui.dev/docs/components/card.md): A surface that groups related content. - [Stat](https://horizonui.dev/docs/components/stat.md): A headline metric: caps label, large value, optional change pill and trend. - [Sparkline](https://horizonui.dev/docs/components/sparkline.md): Minimal trend line: one SVG path, optional area fill, and a dot on the last point. - [PropertyGrid](https://horizonui.dev/docs/components/property-grid.md): Two-column key/value list with optional collapsible groups and inline-editable values. - [Timeline](https://horizonui.dev/docs/components/timeline.md): Vertical event list on a 1px rail. - [Tree](https://horizonui.dev/docs/components/tree.md): File and project tree: roving-tabindex keyboard navigation (arrows, Home/End, typeahead), VCS status colours, indent guides, and a hover highlight that glides between rows. - [TrackList](https://horizonui.dev/docs/components/track-list.md): Selectable list whose hover/focus highlight is one raised keycap gliding between rows. - [DataGrid](https://horizonui.dev/docs/components/data-grid.md): Data grid with sortable headers, row selection, resizable columns, a sticky header and loading rows. - [ResourceTable](https://horizonui.dev/docs/components/resource-table.md): Compact resource listing: syncing rows pulse their status dot and shimmer once. - [FilteredTable](https://horizonui.dev/docs/components/filtered-table.md): A DataGrid under a filter bar: chips narrow rows by substring on their field; "+ Filter" adds a chip. - [ChangeTable](https://horizonui.dev/docs/components/change-table.md): Three-column field / before / after diff with a coloured change marker on each row. ## Feedback Toasts, banners, progress, loaders, empty and error states. - [Toaster](https://horizonui.dev/docs/components/toaster.md): Renders the toast stack (newest at the bottom). - [Banner](https://horizonui.dev/docs/components/banner.md): Full-width status strip. - [InlineAlert](https://horizonui.dev/docs/components/inline-alert.md): A tinted callout placed inside content. - [ProgressBar](https://horizonui.dev/docs/components/progress-bar.md): Determinate or indeterminate bar. - [ProgressRing](https://horizonui.dev/docs/components/progress-ring.md): Circular progress. - [Skeleton](https://horizonui.dev/docs/components/skeleton.md): Loading placeholder. - [EmptyState](https://horizonui.dev/docs/components/empty-state.md): Centred placeholder for a view with nothing to show. - [Loader](https://horizonui.dev/docs/components/loader.md): HorizonUI's own busy indicators with a shimmering label. - [ProgressSteps](https://horizonui.dev/docs/components/progress-steps.md): Ordered build/task steps joined by connectors. - [ConfirmPopover](https://horizonui.dev/docs/components/confirm-popover.md): Compact "are you sure" popover anchored to its trigger. - [ErrorCard](https://horizonui.dev/docs/components/error-card.md): A failure summary with an expandable stack trace, Retry and Copy. ## Overlays Dialogs, sheets, popovers, menus and a command palette. - [Dialog](https://horizonui.dev/docs/components/dialog.md): Modal dialog with a scrim, header, body and footer bar. - [Sheet](https://horizonui.dev/docs/components/sheet.md): Modal panel that slides in from an edge. - [Popover](https://horizonui.dev/docs/components/popover.md): Anchored panel opened from a trigger. - [HoverCard](https://horizonui.dev/docs/components/hover-card.md): Rich preview shown on hover or focus of its trigger. - [DropdownMenu](https://horizonui.dev/docs/components/dropdown-menu.md): Tactile tray menu opened from a trigger: items, checkboxes, radio groups, submenus, separators and labels. - [ContextMenu](https://horizonui.dev/docs/components/context-menu.md): The same tray menu as DropdownMenu, opened at the pointer by right-click or the context-menu key. - [CommandPalette](https://horizonui.dev/docs/components/command-palette.md): Command palette: a searchable tray of files, symbols and actions with fuzzy matching, tabs and keyboard navigation. ## Navigation Tabs, accordions, sidebar, breadcrumbs, stepper, action bar. - [Tabs](https://horizonui.dev/docs/components/tabs.md): Tabbed navigation. - [TabPanel](https://horizonui.dev/docs/components/tab-panel.md): Content for one tab. - [Accordion](https://horizonui.dev/docs/components/accordion.md): Stacked disclosures. - [Collapsible](https://horizonui.dev/docs/components/collapsible.md): One disclosure: a header button that shows or hides its content with a height transition. - [Breadcrumbs](https://horizonui.dev/docs/components/breadcrumbs.md): The path to the current location. - [Pagination](https://horizonui.dev/docs/components/pagination.md): Page navigation with previous and next keys. - [Sidebar](https://horizonui.dev/docs/components/sidebar.md): App navigation: a workspace header, grouped rows with one gliding hover highlight, and a user footer. - [Stepper](https://horizonui.dev/docs/components/stepper.md): A numbered wizard: done steps show a check, the current step wears the accent ring, connectors fill as you advance. - [ActionBar](https://horizonui.dev/docs/components/action-bar.md): A tray pill of keys for acting on a selection: close, a title and count, then the actions. ## Shell Window chrome, dock panels, editor, terminal, status bar. - [TitleBar](https://horizonui.dev/docs/components/title-bar.md): Window title bar on the canvas: platform controls, project and branch chips, run widget and a row of keys. - [RunControl](https://horizonui.dev/docs/components/run-control.md): Run configuration chip with a configuration menu and the run, debug, rerun and stop buttons. - [DockBar](https://horizonui.dev/docs/components/dock-bar.md): Slim tool-window launcher on the canvas. - [DockPanel](https://horizonui.dev/docs/components/dock-panel.md): Floating tool-window panel: header with title and actions, optional underline tabs, scrolling body. - [StatusBar](https://horizonui.dev/docs/components/status-bar.md): Window status bar, flat on the canvas. - [StatusBarItem](https://horizonui.dev/docs/components/status-bar-item.md): One cell of the status bar. - [EditorTabs](https://horizonui.dev/docs/components/editor-tabs.md): The open-files strip above the editor. - [CodeEditor](https://horizonui.dev/docs/components/code-editor.md): A read-only code surface: gutter with breakpoints, line numbers and VCS markers, a caret row, diff lines, ghost suggestions, indent guides and an optional minimap. - [Minimap](https://horizonui.dev/docs/components/minimap.md): A 64px overview of a file: one 2px row per line made of token-coloured bars, with the visible range as a lighter rect. - [Terminal](https://horizonui.dev/docs/components/terminal.md): A terminal pane: styled output lines, prompt lines with the working directory, an optional live input and a sessions strip. - [ProblemsList](https://horizonui.dev/docs/components/problems-list.md): Diagnostics for the project as a tree: a summary header, then problems grouped under collapsible file rows or as a flat list. - [PathBar](https://horizonui.dev/docs/components/path-bar.md): The code location above the editor: module, package, file and symbol. - [AppFrame](https://horizonui.dev/docs/components/app-frame.md): Whole-window IDE shell: title bar, dock bars, floating tool-window panels on the canvas with 6px gaps, editor and status bar. - [SettingsLayout](https://horizonui.dev/docs/components/settings-layout.md): Settings window body: searchable page tree on the left, breadcrumb title and page content on the right, action footer. ## AI Chat, streaming, thinking, tool runs, permissions, diffs, questions, reviews, blueprints and agents. - [Markdown](https://horizonui.dev/docs/components/markdown.md): Markdown-lite renderer, no dependencies: paragraphs, bold, italic, code, safe links, lists, quotes, headings, fenced code and tables. - [ThoughtTrace](https://horizonui.dev/docs/components/thought-trace.md): The agent's visible working: a collapsible trace with a live header and one of four bodies. - [StreamedAnswer](https://horizonui.dev/docs/components/streamed-answer.md): An assistant answer that streams in: Markdown of the revealed text, a caret, then citations and follow-up chips once done. - [AgentStatus](https://horizonui.dev/docs/components/agent-status.md): The agent's live state: an avatar with a state ring, its name, a status label, what it is doing, and elapsed time. - [ChatMessage](https://horizonui.dev/docs/components/chat-message.md): One chat turn: user bubble, assistant block (avatar, thinking, tool calls, streamed answer, actions), or a centred system pill. - [ChatThread](https://horizonui.dev/docs/components/chat-thread.md): A scrolling conversation: messages in a centred column that sticks to the bottom as content arrives. - [PromptComposer](https://horizonui.dev/docs/components/prompt-composer.md): The message box: a tray with an auto-growing text well, attachment chips, slash and @ menus, a model picker and Send/Stop. - [ModelPicker](https://horizonui.dev/docs/components/model-picker.md): Chooses the model tier: a trigger that opens a listbox of tiers with context size and speed/depth meters. - [ToolRun](https://horizonui.dev/docs/components/tool-run.md): One tool call as a raised keycap row: tool icon, title, status and duration. - [ToolRunGroup](https://horizonui.dev/docs/components/tool-run-group.md): "Used N tools" summary chip that opens to the list of ToolRun rows. - [PlanChecklist](https://horizonui.dev/docs/components/plan-checklist.md): A plan as a checklist: progress header, then rows (or horizontal capsules) whose status marks animate as they change. - [PermissionPrompt](https://horizonui.dev/docs/components/permission-prompt.md): The approval tray for one risky action. - [SessionList](https://horizonui.dev/docs/components/session-list.md): Sessions of an agent: a raised highlight glides between rows (TrackList pattern); roving focus, Enter or click selects. - [CodeBlock](https://horizonui.dev/docs/components/code-block.md): A fenced code surface: a panel header with the file, the language and Copy / Apply / Insert, over a syntax-coloured body. - [DiffReview](https://horizonui.dev/docs/components/diff-review.md): A review surface for a multi-file change: file cards of hunks, each with Accept and Reject (shown on hover and whenever focus is inside), unified or split. - [ContextTray](https://horizonui.dev/docs/components/context-tray.md): The things an agent can see, as cards: kind icon, label, detail and token count. - [ContextMeter](https://horizonui.dev/docs/components/context-meter.md): Context window usage: a segmented bar by category, a "used / limit" label that warns from 80% and turns danger from 95%. - [InlineSuggestion](https://horizonui.dev/docs/components/inline-suggestion.md): A code excerpt with a ghosted AI suggestion. - [SelectionToolbar](https://horizonui.dev/docs/components/selection-toolbar.md): The floating actions over a text selection: a "Describe edits" prompt and ghost actions on the raised tray (AI actions carry the Sparkle), one tab stop with arrow-key movement. - [TokenUsage](https://horizonui.dev/docs/components/token-usage.md): Spend and token totals for a period: cost, budget bar, input / output / cached and a trend. - [WorkflowGraph](https://horizonui.dev/docs/components/workflow-graph.md): A flow diagram: nodes ranked by the longest path through the edges, joined by rounded elbow connectors. - [InsightCarousel](https://horizonui.dev/docs/components/insight-carousel.md): Metric cards a page at a time, with previous and next buttons, one dot per page and a "Page N of M" status. - [ParameterPanel](https://horizonui.dev/docs/components/parameter-panel.md): Generation settings: a slider per field with its live formatted value, then switches. - [DecisionCard](https://horizonui.dev/docs/components/decision-card.md): A choice for the user to make: one answer from a list of rows, the recommended one starred and picked at first, each row opening to its gains and costs, and a Confirm button. - [AgentLiveView](https://horizonui.dev/docs/components/agent-live-view.md): A window onto what the agent is doing right now: the screen, a running action log, progress, and Pause, Take over and Stop. - [Blueprint](https://horizonui.dev/docs/components/blueprint.md): An architecture canvas: groups sink as wells, typed nodes rise as cards, and labelled edges join them (solid data, dashed async, dotted dependency). - [Question](https://horizonui.dev/docs/components/question.md): A question for the user: one answer (radio rows) or several (checkbox rows). - [ReviewFinding](https://horizonui.dev/docs/components/review-finding.md): One code review finding, ready to act on: severity, title and file:line, the excerpt with the flagged lines tinted, the reasoning, the suggested fix as a diff, Apply fix / Reply / Dismiss, and the replies.