# PeakUI Pro Documentation > The premium layer of the PeakUI Design System, built from the open-source PeakUI core. PeakUI Pro (`@peakui-pro/react` 0.1.1) composes the primitives of the open-source core, `@peakui/react`, into complex components, and later screen blocks, templates and premium themes. **What to know before writing code:** - Install the two Pro packages — the core arrives with them as a dependency: `npm install @peakui-pro/react @peakui-pro/styles`. - Import most components from the package root: `import {...} from "@peakui-pro/react"`. - The components with a heavy optional peer import from their subpath only — `import {AreaChart} from "@peakui-pro/react/area-chart"` — so the root barrel never requires what you have not installed. Today: `area-chart`, `bar-chart`, `chat-tool`, `code-block`, `composed-chart`, `kpi`, `line-chart`, `markdown`, `pie-chart`, `radar-chart`, `radial-chart`. - Import the styles in this exact order: `@import "tailwindcss";` then `@import "@peakui/styles";` then `@import "@peakui-pro/styles";`. - Pro components compose core primitives; the core stays the single implementation. Props follow React Aria: `isDisabled`, `isPending`, `onPress`. There is no `classNames` or `as` prop. - React 19 or later. There is no provider component; the theme is CSS. ## Machine-readable resources - [All component pages as one file](https://peakui.pro/llms-components.txt) - [All guides as one file: every page that is not a component page](https://peakui.pro/llms-patterns.txt) - [Pages index (JSON): every component and guide, with links to each page](https://peakui.pro/api/components) - Any documentation page as markdown: append `.md` to its URL, or request it with `Accept: text/markdown`. ## Documentation Index ### Getting Started - [Animation](https://peakui.pro/en/docs/react/getting-started/animation): The keyframes Pro ships, and the reduced-motion contract they keep - [Colors](https://peakui.pro/en/docs/react/getting-started/colors): The chart ramp Pro derives from your accent, and how to override it - [Composition](https://peakui.pro/en/docs/react/getting-started/composition): How a Pro component is assembled, with Widget shown in full - [Styling](https://peakui.pro/en/docs/react/getting-started/styling): Pro's class names and the component variables you can set - [Theming](https://peakui.pro/en/docs/react/getting-started/theming): The CSS import order Pro requires, and what it adds to the theme - [Agent Skills](https://peakui.pro/en/docs/react/getting-started/agent-skills): Install the PeakUI Pro skill so your AI coding agent writes correct PeakUI Pro code. - [LLMs.txt](https://peakui.pro/en/docs/react/getting-started/llms-txt): Machine-readable versions of the PeakUI Pro documentation for AI coding assistants. - [PeakUI Pro](https://peakui.pro/en/docs/react/getting-started): The premium layer of the PeakUI Design System. - [Introduction](https://peakui.pro/en/docs/react/getting-started/introduction): Install PeakUI Pro, import its styles in the right order and render your first component. ### Components - [All Components](https://peakui.pro/en/docs/react/components): Every PeakUI Pro component, grouped by purpose. - [ChainOfThought](https://peakui.pro/en/docs/react/components/chain-of-thought): Collapsible reasoning trail with a timeline of steps - [ChatAttachment](https://peakui.pro/en/docs/react/components/chat-attachment): File previews and drag-and-drop input for chat - [ChatConversation](https://peakui.pro/en/docs/react/components/chat-conversation): Scrollable chat viewport that follows streaming messages - [ChatListView](https://peakui.pro/en/docs/react/components/chat-list-view): Thread list rows for chat sidebars and conversation pickers - [ChatLoader](https://peakui.pro/en/docs/react/components/chat-loader): Loading indicators and skeletons for assistant responses - [ChatMessageActions](https://peakui.pro/en/docs/react/components/chat-message-actions): Row of icon buttons beneath a chat message - [ChatMessage](https://peakui.pro/en/docs/react/components/chat-message): User and assistant message layouts for chat threads - [ChatSource](https://peakui.pro/en/docs/react/components/chat-source): Citation chips and grouped source lists for answers - [ChatTool](https://peakui.pro/en/docs/react/components/chat-tool): Collapsible tool-call card with states and approval - [CodeBlock](https://peakui.pro/en/docs/react/components/code-block): Highlighted code with a language label and copy button - [Markdown](https://peakui.pro/en/docs/react/components/markdown): Streaming markdown for AI answers, block by block - [PromptInput](https://peakui.pro/en/docs/react/components/prompt-input): Message composer with attachments, toolbar and stop - [PromptSuggestion](https://peakui.pro/en/docs/react/components/prompt-suggestion): Suggested prompts and starter cards for chat empty states - [TextShimmer](https://peakui.pro/en/docs/react/components/text-shimmer): Animated shimmer text for thinking and loading labels - [AreaChart](https://peakui.pro/en/docs/react/components/area-chart): Area chart with gradient fills and stacked series - [BarChart](https://peakui.pro/en/docs/react/components/bar-chart): Bar chart with grouped, stacked and horizontal layouts - [ChartTooltip](https://peakui.pro/en/docs/react/components/chart-tooltip): Tooltip card for a chart data point - [ComposedChart](https://peakui.pro/en/docs/react/components/composed-chart): Bars, lines and areas on one plot, with a second axis for a measure of another unit - [LineChart](https://peakui.pro/en/docs/react/components/line-chart): Line chart with several series, dots, dashed comparisons and gaps for missing data - [PieChart](https://peakui.pro/en/docs/react/components/pie-chart): A whole shared out as sectors, as a donut, or as nested rings - [RadarChart](https://peakui.pro/en/docs/react/components/radar-chart): Several measures compared across shared categories, drawn as an outline around a centre - [RadialChart](https://peakui.pro/en/docs/react/components/radial-chart): Progress shown as concentric rings, a dial, or a single ring around a figure - [KPIGroup](https://peakui.pro/en/docs/react/components/kpi-group): Several metrics on one surface - [KPI](https://peakui.pro/en/docs/react/components/kpi): Metric card with a figure, a trend and a sparkline - [Widget](https://peakui.pro/en/docs/react/components/widget): A card that frames a chart, a table or metrics - [NumberValue](https://peakui.pro/en/docs/react/components/number-value): Locale-aware number with prefix and suffix - [TrendChip](https://peakui.pro/en/docs/react/components/trend-chip): A chip showing a metric's direction and change - [CellColorPicker](https://peakui.pro/en/docs/react/components/cell-color-picker): Colour picker styled as a settings cell - [CellSelect](https://peakui.pro/en/docs/react/components/cell-select): Compact select styled as a settings cell - [CellSlider](https://peakui.pro/en/docs/react/components/cell-slider): Range slider styled as a settings cell - [CellSwitch](https://peakui.pro/en/docs/react/components/cell-switch): Toggle switch styled as a settings cell - [CheckboxButtonGroup](https://peakui.pro/en/docs/react/components/checkbox-button-group): Multi-select group of card-style checkboxes - [NativeSelect](https://peakui.pro/en/docs/react/components/native-select): A styled native select element - [RadioButtonGroup](https://peakui.pro/en/docs/react/components/radio-button-group): Single-choice group of card-style radios ### Agents - [PeakUI Agents](https://peakui.pro/en/docs/agents): A model writes the interface, your contracts decide what it may write. ### Agents — Getting Started - [Installation](https://peakui.pro/en/docs/agents/getting-started/installation): The packages, their peers, and the one order the stylesheets must load in. - [Overview](https://peakui.pro/en/docs/agents/getting-started/overview): A model composes approved components through typed contracts, and nothing else. - [Quickstart](https://peakui.pro/en/docs/agents/getting-started/quickstart): A model-written surface on your page, in three files. ### Agents — Guides - [AgentProvider](https://peakui.pro/en/docs/agents/guides/agent-provider): The store, the registry and the renderers every surface is drawn with. - [AgentRegion](https://peakui.pro/en/docs/agents/guides/agent-region): The page's offer to the model: this space, these kinds, this many surfaces. - [Client tools](https://peakui.pro/en/docs/agents/guides/client-tools): Letting the model act on your page, with the user's consent and the user's session. - [Durability](https://peakui.pro/en/docs/agents/guides/durability): What survives a reload, a dropped connection and a restart — and what does not. - [The runtime](https://peakui.pro/en/docs/agents/guides/runtime): One handler, four routes, and the bounds that keep a turn finite. - [useAgentChat](https://peakui.pro/en/docs/agents/guides/use-agent-chat): Sending a turn, watching its status, answering what it asks, and stopping it. ### Agents — Components - [Components](https://peakui.pro/en/docs/agents/components): Every kind a model may compose, with the schema that decides what it may write. - [Alert](https://peakui.pro/en/docs/agents/components/core-alert): States something the user should notice about the data; for a number use Kpi - [Badge](https://peakui.pro/en/docs/agents/components/core-badge): Labels something in a word or two, such as a status; for a sentence use Alert - [Button](https://peakui.pro/en/docs/agents/components/core-button): Lets the user ask for something; it sends an intent back, it never calls a tool - [Card](https://peakui.pro/en/docs/agents/components/core-card): Groups related components under a heading; it is a container, not a message - [Column](https://peakui.pro/en/docs/agents/components/core-column): Stacks its children one above another; for side by side use Row - [Grid](https://peakui.pro/en/docs/agents/components/core-grid): Lays its children out in equal columns; for a single line use Row - [NumberField](https://peakui.pro/en/docs/agents/components/core-number-field): Takes one number from the user, optionally within bounds - [Progress](https://peakui.pro/en/docs/agents/components/core-progress): Shows how far along something is, from nought to a hundred; for a value use Kpi - [Row](https://peakui.pro/en/docs/agents/components/core-row): Places its children side by side; for one above another use Column - [Select](https://peakui.pro/en/docs/agents/components/core-select): Takes one choice from a fixed list; for free text use TextField - [Switch](https://peakui.pro/en/docs/agents/components/core-switch): Turns one setting on or off; for a choice between values use Select - [Tabs](https://peakui.pro/en/docs/agents/components/core-tabs): Shows one of several views at a time; to show them all at once use Column - [TextField](https://peakui.pro/en/docs/agents/components/core-text-field): Takes one line of text from the user into the surface's data model - [AreaChart](https://peakui.pro/en/docs/agents/components/pro-area-chart): A trend over time for up to five series; for one current number use Kpi - [KpiGroup](https://peakui.pro/en/docs/agents/components/pro-kpi-group): A row of related KPIs read together; a single number needs no group - [Kpi](https://peakui.pro/en/docs/agents/components/pro-kpi): One headline number with an optional change; for a trend over time use AreaChart - [TrendChip](https://peakui.pro/en/docs/agents/components/pro-trend-chip): A small signed change shown beside a number it belongs to; alone, use Kpi ### templates - [AI Assistant](https://peakui.pro/en/docs/react/templates/ai-assistant): Threads, the conversation and a composer, as one workspace. - [Analytics Dashboard](https://peakui.pro/en/docs/react/templates/analytics-dashboard): Revenue on track or not, and what moved it, on one screen. - [All Templates](https://peakui.pro/en/docs/react/templates): Complete screens composed from PeakUI Pro components. - [Settings](https://peakui.pro/en/docs/react/templates/settings): A settings shell where every field shows its effect, and each view saves one way.