# All Components
> Every PeakUI Pro component, grouped by purpose.
**Category**: components
**URL**: https://peakui.pro/en/docs/react/components
**Source**: https://raw.githubusercontent.com/peakui-dev/peakui-pro/refs/heads/main/apps/docs/content/docs/en/react/components/index.mdx
## Charts
- [AreaChart](https://peakui.pro/docs/react/components/area-chart) — a trend over time, with gradient fills and stacked series
- [BarChart](https://peakui.pro/docs/react/components/bar-chart) — values compared across categories, grouped, stacked or horizontal
- [ComposedChart](https://peakui.pro/docs/react/components/composed-chart) — bars, lines and areas on one plot
- [LineChart](https://peakui.pro/docs/react/components/line-chart) — one or more series over time, with dots and dashed comparisons
- [PieChart](https://peakui.pro/docs/react/components/pie-chart) — parts of a whole, as a pie or a donut
- [RadarChart](https://peakui.pro/docs/react/components/radar-chart) — several measures of one subject on radial axes
- [RadialChart](https://peakui.pro/docs/react/components/radial-chart) — progress rings and gauges
- [ChartTooltip](https://peakui.pro/docs/react/components/chart-tooltip) — the card a chart puts under the pointer
## Data Display
- [Widget](https://peakui.pro/docs/react/components/widget) — the card a dashboard chart sits in, with a header, a footer and a legend
- [KPI](https://peakui.pro/docs/react/components/kpi) — a metric card with a figure, a trend and a sparkline
- [KPIGroup](https://peakui.pro/docs/react/components/kpi-group) — several metrics on one surface
## Feedback
- [NumberValue](https://peakui.pro/docs/react/components/number-value) — a locale-aware number with a prefix and a suffix
- [TrendChip](https://peakui.pro/docs/react/components/trend-chip) — a chip showing a metric's direction
## Forms
- [CellSwitch](https://peakui.pro/docs/react/components/cell-switch) — a toggle switch styled as a settings cell
- [CellSlider](https://peakui.pro/docs/react/components/cell-slider) — a range slider styled as a settings cell
- [CellSelect](https://peakui.pro/docs/react/components/cell-select) — a compact select styled as a settings cell
- [CellColorPicker](https://peakui.pro/docs/react/components/cell-color-picker) — a colour picker styled as a settings cell
# Animation
> The keyframes Pro ships, and the reduced-motion contract they keep
**Category**: getting-started
**URL**: https://peakui.pro/en/docs/react/getting-started/animation
**Source**: https://raw.githubusercontent.com/peakui-dev/peakui-pro/refs/heads/main/apps/docs/content/docs/en/react/getting-started/(handbook)/animation.mdx
Pro adds no animation dependency: motion here is CSS, on the core's easing tokens. Four keyframes
are Pro's own; everything else — the curves, the looping compositions, the attribute model — comes
from the core.
Easing tokens, looping animations and the data-attribute model are in
[Animation](https://peakui.dev/docs/react/getting-started/animation).
## Keyframes Pro Ships
| Keyframes | Component | What moves |
| -------------------------------- | ----------------------------------------- | ---------------------------------------------------------- |
| `text-shimmer` | `TextShimmer` | A highlight sweeps across the label |
| `chat-loader-bounce` | `ChatLoader` | Each dot fades and scales in turn |
| `chat-loader-pulse` | `ChatLoader` | The pulse variant grows and fades |
| `button-group-card-indicator-in` | `CheckboxButtonGroup`, `RadioButtonGroup` | A custom indicator icon fades in when its card is selected |
Only the last runs on a core curve. The three others carry their timing function literally, so
redefining `--ease-*` retimes the indicator and leaves them as they are.
```css
:is(.checkbox-button-group__indicator, .radio-button-group__indicator)[data-custom="true"] > * {
animation: button-group-card-indicator-in 150ms var(--ease-out);
}
```
## Entering and Exiting
A component that opens and closes writes the phase onto the DOM, and its stylesheet selects on it.
`ChatSource` is the worked example:
```css
.chat-source__preview {
&[data-entering] {
/* animate-in, fade-in-0, zoom-in-95 */
}
&[data-exiting] {
/* animate-out, fade-out, zoom-out-95 */
}
}
```
Match the attribute as the component writes it. Here it arrives bare, from the primitive
underneath; the core's own overlays write `data-entering="true"` instead. Each component page lists
the attributes it sets.
## Reduced Motion
Every animated stylesheet in Pro stands down when the reader asks for less motion — ten of ten,
through the media query or the `motion-reduce` variant. Keep that contract in anything you add.
```css
.my-shimmer {
animation: text-shimmer 2s linear infinite;
@media (prefers-reduced-motion: reduce) {
animation: none;
}
}
```
`TextShimmer` also stands down under `forced-colors`, where its highlight would be repainted into
a system color and the sweep would read as flicker rather than as motion.
# Colors
> The chart ramp Pro derives from your accent, and how to override it
**Category**: getting-started
**URL**: https://peakui.pro/en/docs/react/getting-started/colors
**Source**: https://raw.githubusercontent.com/peakui-dev/peakui-pro/refs/heads/main/apps/docs/content/docs/en/react/getting-started/(handbook)/colors.mdx
The color system is the core's — the same semantic roles, the same `-foreground` pairs, the same
theme switching. Pro adds one thing of its own: a five-step ramp for charts.
Every role, with a plate per token, is on
[Colors](https://peakui.dev/docs/react/getting-started/colors).
## The Chart Ramp
A chart series takes its color as a value — `AreaChart.Area`, `KPI.Chart` and the rest — and the
five variables below are what you give it. They are derived from your theme's accent, so a series
wired to one of them is in your brand without a palette of its own:
```css
:root,
:host,
[data-theme] {
--chart-1: oklch(from var(--accent) calc(l - 0.24) c h);
--chart-2: oklch(from var(--accent) calc(l - 0.12) c h);
--chart-3: var(--accent);
--chart-4: oklch(from var(--accent) calc(l + 0.12) c h);
--chart-5: oklch(from var(--accent) calc(l + 0.24) c h);
}
```
`--chart-3` is the accent itself, with two darker steps below it and two lighter above.
Nothing is applied for you: a series left alone draws in `currentColor`. Name the variable on the
part, and from then on changing `--accent` moves every series that points at the ramp.
```tsx
```
### Declared on Every Themed Element
The ramp is declared on `:root`, `:host` and `[data-theme]` together, not on the root alone. A
custom property that calls `var()` resolves where it is declared, so a ramp declared only at the
root would carry the root's accent into a subtree that set its own theme.
```tsx
{/* The ramp inside resolves from this section's accent, not the page's. */}
```
### Tailwind Utilities
The five are bridged into Tailwind, so they reach your own markup as well.
```tsx
```
### Forced Colors
Under `forced-colors` the ramp falls back to system colors, and the only promise it keeps is that a
series is visible against `Canvas`. Five series cannot be told apart by color there — in this
library or any other — so a chart that must stay readable gives its series a shape or a label too.
## Overriding the Ramp
Declare the five yourself and the derivation steps aside. Declare them wherever the library does —
on `:root` for the page, and again on each `[data-theme]` you use, since the library's own
declaration on a themed element beats one inherited from the root:
```css
:root,
[data-theme="default-light"] {
--chart-1: oklch(0.45 0.16 250);
--chart-2: oklch(0.55 0.16 250);
--chart-3: oklch(0.62 0.16 250);
--chart-4: oklch(0.72 0.14 250);
--chart-5: oklch(0.82 0.1 250);
}
[data-theme="default-dark"] {
--chart-1: oklch(0.55 0.16 250);
--chart-2: oklch(0.65 0.16 250);
--chart-3: oklch(0.72 0.16 250);
--chart-4: oklch(0.8 0.14 250);
--chart-5: oklch(0.88 0.1 250);
}
```
## Browsers Without Relative Colors
The ramp is built with [relative colors](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_colors/Relative_colors),
supported since 2024 in every major browser. Where they are not supported the five stay
**undefined** and a series draws without a color — declare them yourself, as above, to support
those browsers.
# Composition
> How a Pro component is assembled, with Widget shown in full
**Category**: getting-started
**URL**: https://peakui.pro/en/docs/react/getting-started/composition
**Source**: https://raw.githubusercontent.com/peakui-dev/peakui-pro/refs/heads/main/apps/docs/content/docs/en/react/getting-started/(handbook)/composition.mdx
Pro follows the core's patterns: compound components whose parts hang off the root, a `render` prop
where an element must be replaced, and no `classNames` prop anywhere.
Compound parts, fields, React Aria props and the `render` prop are in
[Composition](https://peakui.dev/docs/react/getting-started/composition).
## Widget in Full
Every part of a Pro compound component hangs off its root, which is also the element you render:
```tsx
import {Widget} from "@peakui-pro/react";
import {AreaChart} from "@peakui-pro/react/area-chart";
Requests
Last 30 days
Requests
Errors
Updated a minute ago
;
```
`Widget.LegendItem` takes its dot color as a value, not a token name, which is why the chart ramp
appears here as `var(--chart-3)`. The five are on [Colors](https://peakui.pro/en/docs/react/getting-started/colors).
A part is used where it belongs and nowhere else: `Widget.Title` inside `Widget.Header`, content
inside `Widget.Content`. Each component page carries its own anatomy.
## Heavy Peers Come From a Subpath
A component that needs a large optional dependency is exported from its own subpath, so an app
that renders no chart never resolves `recharts`:
```tsx
import {KPIGroup, TrendChip, Widget} from "@peakui-pro/react";
import {AreaChart} from "@peakui-pro/react/area-chart";
```
The table of which component comes from where is in [Introduction](https://peakui.pro/en/docs/react/getting-started/introduction).
## Styling Your Own Element
A Pro class name is just a class name: put it on your own element and the stylesheet applies. It is
the escape hatch for a layout the parts do not cover — and it carries no behaviour, so a part is
the better answer whenever one fits.
```tsx
```
# Styling
> Pro's class names and the component variables you can set
**Category**: getting-started
**URL**: https://peakui.pro/en/docs/react/getting-started/styling
**Source**: https://raw.githubusercontent.com/peakui-dev/peakui-pro/refs/heads/main/apps/docs/content/docs/en/react/getting-started/(handbook)/styling.mdx
Pro is styled the way the core is: BEM class names emitted by variant functions, `data-slot` on
rendered elements, and per-component custom properties as the seam. Pro's names are its own.
Class names, state selectors, slots and variant functions are in
[Styling](https://peakui.dev/docs/react/getting-started/styling).
## Class Names
A block, its elements, its modifiers — `Widget` is the shape of all of them:
```css
.widget {
}
.widget__header {
}
.widget__title {
}
.widget__legend-item-dot {
}
```
Modifiers carry size and variant: `.prompt-input--sm`, `.prompt-input--md`, `.prompt-input--lg`,
and `.chat-message--user` beside `.chat-message--assistant`. Target a part and nothing else moves:
```css
.widget__legend-item-dot {
width: 10px;
height: 10px;
}
```
## Component Variables
The loader and shimmer variables carry their default **on the element named**, and a declaration
on an element beats a value inherited from an ancestor: set those on that element, or on a
selector that reaches it, because a value on a wrapper is overridden by the default and nothing
changes. The two radius variables are the other kind — nothing declares them, the stylesheet only
reads them with a fallback, so an ancestor works for those.
| Variable | Declared on | Changes |
| ------------------------------------- | ------------------------ | --------------------------------------------------------------- |
| `--chat-loader-dot-size` | `.chat-loader__dots` | Diameter of one dot |
| `--chat-loader-dot-gap` | `.chat-loader__dots` | Space between the dots |
| `--chat-loader-pulse-size` | `.chat-loader__pulse` | Diameter of the pulse |
| `--chat-loader-avatar-size` | `.chat-loader` | Avatar square in the skeleton variant |
| `--chat-loader-line-height` | `.chat-loader` | Height of a skeleton line |
| `--spread` | `.text-shimmer` | How far the highlight fades on each side of its centre |
| `--text-shimmer-rest` | `.text-shimmer` | How much color the label keeps while the highlight is elsewhere |
| `--checkbox-button-group-item-radius` | `.checkbox-button-group` | Corner radius of a card |
| `--radio-button-group-item-radius` | `.radio-button-group` | Corner radius of a card |
`--text-shimmer-rest` has a floor. Its default, `60%`, is the lowest value that holds 4.5:1 for
the default foreground — measured at 4.51:1 in the light theme and 7.16:1 in the dark one. A
lower value fails the AA floor for body text, and a label that starts dimmer than the
foreground needs a higher one.
```css
.my-loader {
--chat-loader-dot-size: 8px;
--chat-loader-dot-gap: 6px;
}
```
## The Full List
Each component page carries the classes that component emits, with a link to its stylesheet in the
repository — that source is the list, and it cannot drift from itself.
# Theming
> The CSS import order Pro requires, and what it adds to the theme
**Category**: getting-started
**URL**: https://peakui.pro/en/docs/react/getting-started/theming
**Source**: https://raw.githubusercontent.com/peakui-dev/peakui-pro/refs/heads/main/apps/docs/content/docs/en/react/getting-started/(handbook)/theming.mdx
Pro is themed exactly as the core is: the same custom properties, the same `data-theme` switching,
the same cascade layer. Two things are Pro's own — the order its styles must be imported in, and
the chart ramp it adds.
Tokens, overrides, dark mode and component variables are in
[Theming](https://peakui.dev/docs/react/getting-started/theming).
## CSS Import Order
Tailwind first, the core second, Pro last:
```css
@import "tailwindcss";
@import "@peakui/styles";
@import "@peakui-pro/styles";
```
The order is not a preference. Pro's components go into the `components` cascade layer — the one
the core puts its own into — so inside that layer the import order decides, and Pro wins where it
redefines something. Left out of the layer, a Pro rule would outrank every layer there is, and
your own utility class could never override it.
## Themes
Pro ships the shared token layer and no theme of its own yet: a theme comes from the core, and Pro
follows it. That includes a themed subtree, which is the useful case for a dashboard — a chart
inside it resolves its ramp from that subtree's accent, not the page's.
```tsx
```
To find values before writing any CSS, use the core's [Theme Builder](https://peakui.dev/themes):
it previews a whole page, reports the contrast of the pairs it changes and exports the CSS.
## What Pro Adds to the Tokens
Five variables, `--chart-1` to `--chart-5`, derived from `--accent` — the derivation, the override
recipe and the forced-colors fallback are on [Colors](https://peakui.pro/en/docs/react/getting-started/colors).
# Agent Skills
> Install the PeakUI Pro skill so your AI coding agent writes correct PeakUI Pro code.
**Category**: getting-started
**URL**: https://peakui.pro/en/docs/react/getting-started/agent-skills
**Source**: https://raw.githubusercontent.com/peakui-dev/peakui-pro/refs/heads/main/apps/docs/content/docs/en/react/getting-started/(ui-for-agents)/agent-skills.mdx
Two skills ship from this repository. `peakui-pro-react` teaches a coding agent how PeakUI Pro components are composed and styled; for each component it uses, the agent reads the documentation page from this site. `peakui-design-taste` teaches it how to design the screen those components make: layout, hierarchy, colour, type, motion, copy, and the patterns that mark a page as generated.
| Skill | What it answers | Example |
| ----------------------------------------------------------------------- | ----------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| `peakui-pro-react` | Which components exist and how each is composed | "Use a `Widget` around an `AreaChart`" |
| `peakui-design-taste` | How the screen is designed with them | "Build a settings page" comes out with one accent, tone-stepped surfaces and honest empty states |
| [`llms.txt`](https://peakui.pro/en/docs/react/getting-started/llms-txt) | The details, live from this site | "What props does `PromptInput` accept?" |
Install both: the component skill makes a screen compile, the taste skill makes it one you would ship.
## Install
```bash
npx skills add peakui-dev/peakui-pro --skill peakui-pro-react
npx skills add peakui-dev/peakui-pro --skill peakui-design-taste
```
Each skill is copied to `.agents/skills//` and linked from `.claude/skills//`, the two folders coding agents read skills from.
## Point Your Agent at It
Agents do not always load an installed skill on their own. Paste this block into `AGENTS.md` and `CLAUDE.md` at the root of your project:
```md
This project uses PeakUI Pro (`@peakui-pro/react`, `@peakui-pro/styles`) on top of PeakUI (`@peakui/react`, `@peakui/styles`).
Before writing or changing UI code, load the `peakui-pro-react` skill and follow it; for core components, also the `peakui-react` skill.
Before building or reviewing a screen or page, also load the `peakui-design-taste` skill.
Without skills: read https://peakui.pro/llms.txt first.
```
## Update
```bash
npx skills update
```
## What the Scripts Access
Each skill ships one script that the agent runs with Node.js 18 or later.
| Script | Reads | Network |
| -------------------------------------- | ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
| `peakui-pro-react/scripts/docs.mjs` | The documentation index and the pages the agent asks for; with `--source`, a component's source file | `GET` requests to this site and, for `--source`, to `raw.githubusercontent.com` |
| `peakui-design-taste/scripts/lint.mjs` | The source files it is pointed at, for the design tells it can catch mechanically | None |
Neither writes a file or sends anything about your project.
## Mirrors and Previews
Set `PEAKUI_PRO_DOCS_URL` to read the documentation from another origin:
```bash
PEAKUI_PRO_DOCS_URL=https://docs.internal.example node .agents/skills/peakui-pro-react/scripts/docs.mjs list
```
# LLMs.txt
> Machine-readable versions of the PeakUI Pro documentation for AI coding assistants.
**Category**: getting-started
**URL**: https://peakui.pro/en/docs/react/getting-started/llms-txt
**Source**: https://raw.githubusercontent.com/peakui-dev/peakui-pro/refs/heads/main/apps/docs/content/docs/en/react/getting-started/(ui-for-agents)/llms-txt.mdx
The documentation is published in formats that an AI assistant can read directly. Every file below is generated from the same pages you are reading, so it cannot drift from them.
## Available Files
| File | Content |
| ---------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [`/llms.txt`](https://peakui.pro/llms.txt) | An index: one line per page with its title, URL and description. |
| [`/llms-components.txt`](https://peakui.pro/llms-components.txt) | Every component page as markdown, concatenated. |
| [`/llms-patterns.txt`](https://peakui.pro/llms-patterns.txt) | Every guide as markdown, concatenated. A guide is any documentation page that is not a component page; the components gallery counts as one. |
| [`/api/components`](https://peakui.pro/api/components) | A JSON index of all components and all guides, with a `schemaVersion`: the components (name, title, description, page URL, markdown URL, source and style links), the guides (the same fields without links) and the library version. |
## Per-page Markdown
Any documentation page is available as markdown in two ways:
- Append `.md` to its URL: `/docs/react/components/kpi.md`.
- Request the page with the header `Accept: text/markdown`.
In the markdown, each live example is replaced by the source code of that example.
## Integration
Most assistants can be pointed at a documentation URL.
**Claude Code** – add to `CLAUDE.md`:
```md
PeakUI Pro documentation index: /llms.txt
Fetch a component's page as markdown before using it: /docs/react/components/.md
```
**Cursor** – add the `llms.txt` URL under `@Docs`.
**Any agent with a fetch tool** – start from `/llms.txt`, then fetch the `.md` version of the pages it lists.
# PeakUI Pro
> The premium layer of the PeakUI Design System.
**Category**: getting-started
**URL**: https://peakui.pro/en/docs/react/getting-started
**Source**: https://raw.githubusercontent.com/peakui-dev/peakui-pro/refs/heads/main/apps/docs/content/docs/en/react/getting-started/index.mdx
PeakUI Pro is the premium layer of the PeakUI Design System: complex components built from the
core `@peakui/react` primitives, and later screen blocks, templates and premium themes.
Start with [Introduction](https://peakui.pro/en/docs/react/introduction) for the installation contract. Component pages arrive
as components do.
# Introduction
> Install PeakUI Pro, import its styles in the right order and render your first component.
**Category**: getting-started
**URL**: https://peakui.pro/en/docs/react/getting-started/introduction
**Source**: https://raw.githubusercontent.com/peakui-dev/peakui-pro/refs/heads/main/apps/docs/content/docs/en/react/getting-started/introduction.mdx
PeakUI Pro ships as two packages: `@peakui-pro/react` for components and `@peakui-pro/styles`
for their CSS. Both build on the core PeakUI packages.
## Usage
Install the two Pro packages — the core (`@peakui/react`, `@peakui/styles`) arrives with them
as a dependency, so a single install is enough:
```bash
npm install @peakui-pro/react @peakui-pro/styles
```
The styles are imported in a fixed order — Tailwind, then the core, then Pro. The order and the
reason for it are in [Theming](https://peakui.pro/en/docs/react/getting-started/theming).
```tsx
import {TrendChip} from "@peakui-pro/react";
export function Basic() {
return (
+3.3%
-2.1%
0.0%
);
}
```
## Optional Peers and Subpath Imports
A component that draws a chart is imported from its own subpath and needs `recharts`.
| Component | Import | Peer |
| --------------- | ---------------------------------- | -------------------- |
| `AreaChart` | `@peakui-pro/react/area-chart` | `recharts` `>=3.0.0` |
| `KPI` | `@peakui-pro/react/kpi` | `recharts` `>=3.0.0` |
| `BarChart` | `@peakui-pro/react/bar-chart` | `recharts` `>=3.0.0` |
| `ComposedChart` | `@peakui-pro/react/composed-chart` | `recharts` `>=3.0.0` |
| `LineChart` | `@peakui-pro/react/line-chart` | `recharts` `>=3.0.0` |
| `PieChart` | `@peakui-pro/react/pie-chart` | `recharts` `>=3.0.0` |
| `RadarChart` | `@peakui-pro/react/radar-chart` | `recharts` `>=3.0.0` |
| `RadialChart` | `@peakui-pro/react/radial-chart` | `recharts` `>=3.0.0` |
```bash
npm install recharts
```
Every other component comes from the package root, which reaches no peer: an app that renders no
chart never installs `recharts`, and never fails on a server for want of it.
```tsx
import {ChartTooltip, KPIGroup, NumberValue, TrendChip, Widget} from "@peakui-pro/react";
import {AreaChart} from "@peakui-pro/react/area-chart";
import {KPI} from "@peakui-pro/react/kpi";
```
The chart palette, `--chart-1` to `--chart-5`, is derived from your theme's accent. The
derivation, the override recipe and the browsers that need the five declared by hand are on
[Colors](https://peakui.pro/en/docs/react/getting-started/colors).
# AI Assistant
> Threads, the conversation and a composer, as one workspace.
**Category**: templates
**URL**: https://peakui.pro/en/docs/react/templates/ai-assistant
**Source**: https://raw.githubusercontent.com/peakui-dev/peakui-pro/refs/heads/main/apps/docs/content/docs/en/react/templates/ai-assistant.mdx
## The Screen
A reading surface with a composer. The thread list sits on the left; the conversation is a
reading measure in the middle, with the assistant's answer as markdown, a collapsed tool call,
its sources as chips and the message actions beneath; the composer at the bottom owns the one
accent on the screen. A turn in progress shows a shimmering label where the answer will be.
Under `lg` the thread list folds behind a button and the conversation takes the width.
## Made Of
## Source
Copy the folder into your project. The screen imports `@peakui/react`, `@peakui-pro/react` and
its `chat-tool` and `markdown` subpaths, `@gravity-ui/icons` and `react`, and nothing else. The
thread and the answer live in `data.ts`; wire `PromptInput`'s `onSubmit` to your model.
# Analytics Dashboard
> Revenue on track or not, and what moved it, on one screen.
**Category**: templates
**URL**: https://peakui.pro/en/docs/react/templates/analytics-dashboard
**Source**: https://raw.githubusercontent.com/peakui-dev/peakui-pro/refs/heads/main/apps/docs/content/docs/en/react/templates/analytics-dashboard.mdx
## The Screen
The one question is whether revenue is on track this month and what moved it. Four metrics
answer the first half on one surface; the revenue chart against last month answers the second,
and the channel split and the product table say where it came from. Colour sits on the data:
the chart ramp is derived from the accent, and the accent itself appears once, on the primary
action.
The sidebar folds to a drawer under `lg`; the metrics stack two by two on a phone; the table
keeps its figures right-aligned and tabular at every width.
## Made Of
## Source
Copy the folder into your project. The screen imports `@peakui/react`, `@peakui-pro/react` and
its chart subpaths, `@gravity-ui/icons` and `react`, and nothing else. Replace `data.ts` with
your own rows; every total is computed from them.
# All Templates
> Complete screens composed from PeakUI Pro components.
**Category**: templates
**URL**: https://peakui.pro/en/docs/react/templates
**Source**: https://raw.githubusercontent.com/peakui-dev/peakui-pro/refs/heads/main/apps/docs/content/docs/en/react/templates/index.mdx
A template is a complete screen: layout, components and data wiring, composed from this library.
Copy it, replace the data, ship the screen.
A card marked ready opens the template's page: a live preview at three widths, the components
it is made of and its source. A planned card is a concept, rendered live from today's
components, not a screenshot of a shipped template.
## Built With Design Taste
Every template here follows the `peakui-design-taste` skill: one accent spent on one action,
surfaces told apart by tone, two or three type sizes, charts in the theme's ramp, honest states.
Install it beside the component skill and your agent builds screens the same way:
```bash
npx skills add peakui-dev/peakui-pro --skill peakui-design-taste
```
# Settings
> A settings shell where every field shows its effect, and each view saves one way.
**Category**: templates
**URL**: https://peakui.pro/en/docs/react/templates/settings
**Source**: https://raw.githubusercontent.com/peakui-dev/peakui-pro/refs/heads/main/apps/docs/content/docs/en/react/templates/settings.mdx
## The Screen
Settings fail in two places: the reader cannot tell what a field will do, and the screen cannot
decide whether it saves on change or on a button. This one answers both.
The store section puts the confirmation a customer receives beside the fields that write it. The
name, the support address, the currency, the number format and the time zone all land in the
receipt as they are typed, so the reader sees the result before committing it — and a form that
shows its result can afford a save bar, which sticks to the bottom of the viewport while there is
something to save and says so in words.
The notifications section saves the other way. A cell applies the moment it changes, the heading
says so, and the line beside it names what was last applied. There is no save button and no
toast: a setting that needs confirming is a form, and belongs in one. Team mixes the two on
purpose — a role is one value with one effect, so it applies on change, while inviting a person
and removing one are acts, and each gets a dialog that names who.
Four sections, four layouts: a form with a preview, rows of cells, a list of people, meters over
a list of invoices. The section list is a column at `md` and a `Select` below it, because four
tabs only fit 390 by shrinking their labels past reading.
## Made Of
## Source
Copy the folder into your project. The screen imports `@peakui/react`, `@peakui-pro/react`,
`@gravity-ui/icons` and `react`, and nothing else. Replace `data.ts` with your own source: the
receipt's subtotal, tax and total are added up there from the order's rows, the seat count is the
length of the member list, and the order count is the figure the Analytics Dashboard template
reports for the same store.
Two things are left for you to wire. The `SAVE_DELAY` timer in `store-section.tsx` stands where
the request that writes the store belongs; put the request there and keep `isPending` on the
button, so it cannot be pressed twice. And the buttons that end a destructive or outward-facing
act — **Delete store**, **Switch to Scale**, **Update card** — close their dialog and do nothing
else.
Nothing on this screen fetches, so nothing here shows a `Skeleton`. If your sections load their
own data, draw one at the size of the block it replaces, inside that block's own sheet.