Agentic Design System

Component Guidelines

Which component to reach for, by domain - the layer above an individual component's own page, for the moment before you've picked one yet.

Component maturity

A component's own page title carries a badge only when it departs from the library's default expectation below. They describe what's actually been verified for that component, not a subjective quality rating - check a component's own page for its specific Accessibility notes and Component Guide to see that evidence directly.

Default (unbadged)
Documented interaction behavior is implemented as written; has an accessible name, role and value for every control; is fully keyboard-operable with visible focus; renders correctly in both themes and at 320px; and has its own Component Guide page with Do/Don't guidance. This is the bar every component in this library is expected to meet unless flagged otherwise below.
Guarantee
Experimental
Usable today, but its interaction model, visual details or accessibility coverage are still being finalized and may change without the same stability guarantee an unbadged component carries. Review its own page's Accessibility notes before depending on specific behavior.
Guarantee
Mockup
Documentation or a visual reference only - not a working, implemented feature. Used for the handful of integration/reference pages that aren't components (NPM Package, History), not for components themselves.
Guarantee

Feedback - which one, when

Five components exist for reporting something to the user. Picking the wrong one either interrupts a task that didn't need interrupting, or lets something important scroll past unread.

Toast
Confirms something the user just did, on their own timeline, gone in a few seconds
toast.html
Notification
Reports an event the user didn't initiate - a background job finishing, another user's action
notification.html
Alert
A persistent, page-level condition that stays until the situation changes or is dismissed
alert.html
Modal
A decision that must be made before the user can continue, with real consequences
modal.html
Pop Confirm
A single yes/no question anchored to the control that triggered it - lighter than a Modal
pop-confirm.html
Result
The end state of a completed flow - success, failure, or an outcome the user needs to act on next
result.html

Navigation - which one, when

Getting from one place to another, or showing where the user already is, without more machinery than the situation needs.

Tabs
A handful of parallel views over the same object, switched without a page load
tabs.html
Breadcrumb
Where the current page sits inside a hierarchy the user can step back up through
breadcrumb.html
Anchor
Position within one long page - a reading-progress indicator, not a hierarchy
anchor.html
Steps
Position within a multi-step process the user is actively completing, in order
steps.html
Pagination
Position within a large result set split across pages
pagination.html
Menu / Dropdown
A list of actions or destinations chosen from, not a record of position
menu.html

Data Entry - which one, when

The input should match the shape of the answer the user already has - not the shape that's easiest to build.

Select
One choice from a short, flat, known list, all visible at once when open
select.html
Autocomplete
Free text narrowed by real matches as the user types - for large or open-ended option sets
autocomplete.html
Cascader / Tree Select
A choice that genuinely nests two or more levels deep - not a flat list dressed up
cascader.html
Radio
2-5 mutually exclusive options, all visible, no need to open anything
radio.html
Checkbox
Independent yes/no choices, any number of which can be true at once
checkbox.html
Switch
A setting that takes effect immediately - never paired with a separate Save step
switch.html
Slider
An approximate, eyeballed value - pair with Number whenever the exact figure matters
slider.html
Date Range
Two dates that must stay logically ordered - one control, not two independent Date Pickers
date-range.html

Data Display - which one, when

Showing a set of records or values in the shape the reader actually needs to act on them.

Table
Multiple comparable attributes per row - sortable, filterable, scannable by column
table.html
List
One event or record per row, each with an actor and a specific object - not comparable columns
list.html
Description
A record's fixed label/value pairs laid out for reading, not comparing across rows
description.html
Card
One self-contained subject, clickable as a single unit
card.html
Timeline
Events in chronological order where sequence and pacing both matter
timeline.html
Statistic
One headline number with the trend that gives it meaning
statistic.html
Empty
The deliberate zero-results state of any of the above - always says why, never just "No data"
empty.html

Button - hierarchy in one row

Every screen should have at most one Primary. Everything else is there to make the choice between actions legible, not to compete with it.

Primary
The one action this screen exists to let the user complete - exactly one per view
button-primary.html
Secondary
A real alternative to Primary, never a destructive or high-stakes action undersold
button-secondary.html
Tertiary / Ghost / Link
Lowest-emphasis actions - view history, dismiss, inline text links
button-tertiary.html
Destructive
Reserved for actions that actually destroy something - paired with an easy way out
button-destructive.html
Neutral
Toolbar-weight actions (filter, sort) that shouldn't pull focus from the content
button-neutral.html

Data List - grouping and density

Long lists fail by hiding structure (everything looks the same) or by adding structure the data doesn't have (fake grouping, arbitrary dividers).

Group only real boundaries
A Divider or section header marks an actual change in category - not every N items for rhythm
divider.html
Prefer built-in density over shrinking text
Compact mode reduces padding and row height, not font size - shrinking text just makes it harder to read
guidelines.html
Show total + position
Pagination states the result count; Table headers stay pinned on scroll so context never gets lost
pagination.html
One truncation rule per column
The same field is capped at the same width everywhere it's listed - not wider on this screen, narrower on that one
table.html

Component Guidelines - Markdown export

This page's own content, as Markdown - copy it straight into your design system docs or hand it to an AI/agent workflow.

Implementation contract

Saved validated choices override project recommendations, which override system defaults. This implementation contract governs static specimens. Resolved tokens in the current export are authoritative values. Component exceptions must name the affected role and reason.

Structure

Use three columns for label, description and value. Descriptions contain their own Read More/Read Less control after four rendered lines. Stack values under descriptions at container 800px and stack all columns at 560px. Keep 16px gaps, 24px panel padding and 16px mobile padding.

Interaction

Use labelled Group Buttons for section and Human/Machine choices with one selected state, roving arrow/Home/End navigation and visible keyboard focus. Keep copy, export and disclosure feedback accurate. Every component contract declares variant, state precedence, target, responsive behavior and exceptions.

Copy outcomes

All component, pattern and template copy actions use the shared clipboard helper. Modern clipboard failure may fall back only when the legacy copy command succeeds. Otherwise show Copy failed and manual-copy guidance; preserve focus and original button contents. The displayed prompt/code remains available for selection.

Machine contract: section rules, storage, units and acceptance
{
  "schemaVersion": 1,
  "authority": "Saved validated choices override project recommendations, which override system defaults. This implementation contract governs static specimens. Resolved tokens in the current export are authoritative values. Component exceptions must name the affected role and reason.",
  "governance": {
    "owners": "Design System Lead owns token and compatibility policy. Designers own specimens and interaction contracts. Developers own resolver/export/import parity. QA and Accessibility own release evidence. Product teams own domain-specific confidence, privacy and retention policies.",
    "changes": "Change the JSON contract first, regenerate documentation/defaults/catalog/tokens, then run model, DOM and recipient checks. Link the changed finding IDs and evidence in the release review.",
    "compatibility": "Keep hue-named CSS tokens as compatibility aliases while semantic consumers migrate. Additive tokens retain schemaVersion 1. A removed/renamed key or changed stored meaning requires a schema migration, a version bump and a documented replacement before release. Keep the prior reader fixture until the migration is verified.",
    "deprecation": "Record old key, replacement, reason, introduced version, planned removal version and affected consumers. Do not remove a token while an active consumer still uses it. Future records are preserved rather than coerced.",
    "scope": "This is a web design system with one shared workspace profile. Native dp/sp adaptation and real agent execution require separate adapters and acceptance. User-defined colors and responsive exceptions require product-specific rendered verification."
  },
  "storage": {
    "version": 1,
    "legacy": "Unversioned valid records migrate in memory. Typography headingScaleVersion 2 applies the smaller six-heading scale once to older records, retaining other roles and existing font/color/style metrics. Later custom size edits are retained. Unsupported future records are preserved. The next successful write stamps the migrated version.",
    "future": "Reject unsupported future versions. Preserve raw data. Offer backup and explicit reset.",
    "invalid": "Foundation selections preview locally until Save foundation succeeds. Saved Foundation editors require Edit foundation before changes. Cancel discards the preview. Invalid drafts never replace saved records; storage failures retain the editable preview and the last durable record.",
    "concurrency": "A storage event refreshes applied tokens and disables stale editor controls until reload. Never merge simultaneous edits silently."
  },
  "units": {
    "base": "1rem = 16px at default browser settings. Do not fix the root font size.",
    "use": "Prefer rem for typography, spacing and control dimensions. Hairline borders and viewport thresholds may use px. Both equivalents appear in Markdown. SVG strokes use viewBox units. Ratios, percentages, columns, timing and weights are unitless or retain their own units.",
    "native": "Web CSS px/rem are not native dp/sp. A native adapter must map semantic roles, support text scaling and test device density. Native rendering is not shipped by this web library."
  },
  "acceptance": [
    "Compare page, applied tokens, durable record, Machine View and exported instructions.",
    "Test valid, unfinished, invalid, missing, malformed, legacy and future records. Exercise storage failure, reset, reload and another tab.",
    "Test 320, 375, 768, 1024 and 1440px widths, 200% zoom, text-spacing overrides, RTL and long/localized labels.",
    "Use keyboard and screen reader. Confirm focus return, names, values, error associations and status announcements.",
    "Verify actual rendered text/surface pairs, forced colors, reduced motion, print and exported recipes in a recipient fixture. Source or DOM checks alone are not rendered acceptance."
  ],
  "layers": {
    "content": 0,
    "sticky": 20,
    "popover": 40,
    "scrim": 60,
    "dialog": 70,
    "toast": 80,
    "tooltip": 90,
    "rules": "Each overlay gets an explicit owner and close/focus-return path. Portal menus out of clipped scroll containers. Nested dialogs stack one scrim per modal owner. Escape closes the top dismissible layer. Tooltips never block actions. Test collision and zoom; do not infer stacking order from shadow size."
  },
  "section": {
    "title": "Component Guidelines",
    "rules": {
      "Structure": "Use three columns for label, description and value. Descriptions contain their own Read More/Read Less control after four rendered lines. Stack values under descriptions at container 800px and stack all columns at 560px. Keep 16px gaps, 24px panel padding and 16px mobile padding.",
      "Interaction": "Use labelled Group Buttons for section and Human/Machine choices with one selected state, roving arrow/Home/End navigation and visible keyboard focus. Keep copy, export and disclosure feedback accurate. Every component contract declares variant, state precedence, target, responsive behavior and exceptions.",
      "Copy outcomes": "All component, pattern and template copy actions use the shared clipboard helper. Modern clipboard failure may fall back only when the legacy copy command succeeds. Otherwise show Copy failed and manual-copy guidance; preserve focus and original button contents. The displayed prompt/code remains available for selection."
    }
  }
}