Release candidate 0.1.0-rc.0 is ready to verify.
) } ``` - Import from `@blocks/design-system`, never from package source paths. - Add `"use client"` when the example uses state, effects or the dot API of a client component. Named parts work from a Server Component. - Keep each file to one idea, with realistic content. ## Agents read the same page Every page is also served as Markdown, listed in `llms.txt` and readable through the docs’ MCP server; see [Using the docs from an agent](https://design-system.blocks-ui.com/agents.md). The Markdown is the page’s own MDX with each component replaced by a fixed form, so: - Give the page a `description` in its metadata, or open it with a paragraph that says what it’s for. `llms.txt` and the HTML `` both use it. - A new MDX component needs a Markdown form in `apps/docs/agents/components.ts`. Without one, the docs build fails rather than leaving it out of the Markdown. - Write `{expressions}` in code, not in prose: they have no Markdown form either. ================================================================================ title: Contributing and releases section: Getting started url: https://design-system.blocks-ui.com/getting-started/releases markdown: https://design-system.blocks-ui.com/getting-started/releases.md ================================================================================ # Contributing and releases ## Working on the package ```sh bun install --frozen-lockfile (cd apps/docs && bunx playwright install chromium firefox webkit) bun run dev # docs at http://localhost:4300, rebuilding the package as it changes ``` Each component family lands as three commits: the implementation with a live example, a Playwright journey, and its reference page. `AGENTS.md` in the repository lists every command. ## Verifying a revision `bun run verify` is the gate for every change that lands: Biome and the token-only CSS rule, typecheck, the package and docs builds, the generated-output, export and reference checks, every docs journey across Chromium, Firefox and WebKit, and `pack:check`, which installs the packed tarball in a Next App Router app and a Bun-bundled app outside the repository and drives both in a browser. ## Packing a release candidate From a clean checkout of the revision you verified: ```sh git status --short # must be empty bun install --frozen-lockfile bun run verify bun run pack # writes .pack/blocks-design-system-Always light
Accent text
Always dark
Accent text
This paragraph belongs to the host page and keeps its own color and font.
The editor follows the reader’s light or dark preference.
This editor is always dark.
--ds-font-monospace.
A snow course is a line of marked points where observers measure depth and water content by hand. The same points are sampled near the first of each month, so a season’s readings can be compared with decades of earlier ones without worrying that the observer chose easier ground.
Automated stations report every hour, which makes them better for storms and melt, but a single sensor can be fooled by drifting. When the two disagree, the manual course is usually the better guide to how much water the basin holds, and the station is the better guide to when it changed.
Next: comparing seasons
Install the tarball in a clean app, then compare its digest with the one in the release notes. The command
below prints the SHA-256 of blocks-design-system-0.1.0-rc.0.tgz.
shasum -a 256 ./blocks-design-system-0.1.0-rc.0.tgz | tee release-digest.txt && grep -q
"$(cat expected-digest.txt)" release-digest.txt && echo "digest matches"
If the digests differ, rebuild from the tagged revision before installing.
Next: installing fonts` and takes Text’s props, such as `color`.
**Example: Inline code** (`examples/prose/inline-code.tsx`)
```tsx
import { Body, Code } from '@blocks/design-system'
export default function InlineCode() {
return (
Set data-ds-theme to "dark" on any element, or import{' '}
@blocks/design-system/reset.css for global defaults.
)
}
```
## Pre
`Pre` renders a `` on the surface background. Long lines scroll inside the block. Give a long block `tabIndex={0}` and an `aria-label` so keyboard users can reach it and scroll it with the arrow keys.
**Example: A long response** (`examples/prose/standalone-pre.tsx`)
```tsx
import { Pre } from '@blocks/design-system'
export default function StandalonePre() {
return (
{`{"station":"651:OR:SNTL","name":"Mount Hood Test Site","elevation_ft":5370,"snow_depth_in":84,"swe_in":31.2,"observed_at":"2026-12-01T06:00:00-08:00"}`}
)
}
```
## Props
**`Prose` props**
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `as` | `ElementType` | — | The element or component to render, e.g. `as={NextLink}`. |
Also accepts [Box layout props](https://design-system.blocks-ui.com/components/box.md#props), [styling escape hatches](https://design-system.blocks-ui.com/components/box.md#escape-hatches), [margin props](https://design-system.blocks-ui.com/components/box.md#spacing) and [padding props](https://design-system.blocks-ui.com/components/box.md#spacing), and the native attributes of the element it renders.
**`Code` props**
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `as` | `ElementType` | `code` | `"code"`, `"pre"` or `"span"`. Defaults to `"code"`. |
| `color` | `"text" \| "overlay" \| "bg" \| "bg-subtle" \| "surface" \| "surface-hover" \| "surface-active" \| "selected" \| "border-subtle" \| "border" \| "border-strong" \| "focus-ring" \| "accent" \| "accent-hover" \| "accent-fg" \| "accent-subtle" \| "accent-text" \| "danger" \| "danger-hover" \| "danger-fg" \| "danger-subtle" \| "danger-text" \| "warning" \| "warning-hover" \| "warning-fg" \| "warning-subtle" \| "warning-text" \| "success" \| "success-hover" \| "success-fg" \| "success-subtle" \| "success-text" \| "info" \| "info-hover" \| "info-fg" \| "info-subtle" \| "info-text" \| "text-muted"` | — | A color token. Defaults to `"text"`. |
| `fontFamily` | `"body" \| "heading" \| "monospace"` | — | A font token: `body`, `heading` or `monospace`. |
| `fontSize` | `"body" \| "code" \| "heading" \| "xxs" \| "xs" \| "sm" \| "md" \| "lg" \| "xl" \| "xxl" \| "xxxl" \| "xxxxl" \| "xxxxxl" \| "inherit"` | — | A font size token, e.g. `"sm"` or `"heading"`, or `"inherit"` to keep the parent's size. Defaults to `"body"`. |
| `fontWeight` | `"body" \| "heading" \| "medium" \| "bold" \| "semibold"` | — | A font weight token: `body`, `medium`, `semibold`, `heading` or `bold`. |
| `lineHeight` | `"body" \| "heading" \| "inherit"` | — | `body` or `heading`, or `"inherit"` to keep the parent's. Defaults to `"body"`. |
Also accepts [styling escape hatches](https://design-system.blocks-ui.com/components/box.md#escape-hatches), [margin props](https://design-system.blocks-ui.com/components/box.md#spacing) and [a ref](https://design-system.blocks-ui.com/components/box.md#refs), and the native attributes of the element it renders.
**`Pre` props**
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `as` | `ElementType` | — | The element or component to render, e.g. `as={NextLink}`. |
Also accepts [Box layout props](https://design-system.blocks-ui.com/components/box.md#props), [styling escape hatches](https://design-system.blocks-ui.com/components/box.md#escape-hatches), [margin props](https://design-system.blocks-ui.com/components/box.md#spacing) and [padding props](https://design-system.blocks-ui.com/components/box.md#spacing), and the native attributes of the element it renders.
## Accessibility
- Prose doesn’t add landmarks. Give the article or section its own name when it is one.
- A scrolling block without a keyboard stop can only be scrolled with a pointer; add `tabIndex={0}` and a label.
- Screen readers read code character by character on request, so keep commands copyable rather than splitting them across elements.
================================================================================
title: Link
section: Components: Content
url: https://design-system.blocks-ui.com/components/link
markdown: https://design-system.blocks-ui.com/components/link.md
================================================================================
# Link
A text link in the accent color. Link is Text rendered as an ``: it takes every anchor attribute, a `ref`, and Text’s type props. Use [Button](https://design-system.blocks-ui.com/components/button.md) for actions; use Link for navigation.
```tsx
import { Link } from '@blocks/design-system'
```
## Usage
**Example: Links in a sentence** (`examples/link/inline.tsx`)
```tsx
import { Body, Link } from '@blocks/design-system'
export default function Inline() {
return (
Readings come from the{' '}
station network
. Muted links work for secondary details: methodology.
)
}
```
## Router links
Pass your router’s link component as `as` to keep client-side navigation and prefetching with the same styles. The package never imports a router: here `next/link` comes from the app.
**Example: Related pages** (`examples/link/related-pages.tsx`)
```tsx
import { Link, Stack } from '@blocks/design-system'
import NextLink from 'next/link'
export default function RelatedPages() {
return (
{/* A native anchor: a full page load. */}
Box, with a native link
{/* next/link as the host: client-side navigation, same styles. */}
Grid, with next/link
)
}
```
```tsx
import { Link } from '@blocks/design-system'
import NextLink from 'next/link'
Grid
```
## Props
**`Link` props**
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `as` | `ElementType` | — | The element or component to render, e.g. `as={NextLink}`. |
| `color` | `"text" \| "overlay" \| "bg" \| "bg-subtle" \| "surface" \| "surface-hover" \| "surface-active" \| "selected" \| "border-subtle" \| "border" \| "border-strong" \| "focus-ring" \| "accent" \| "accent-hover" \| "accent-fg" \| "accent-subtle" \| "accent-text" \| "danger" \| "danger-hover" \| "danger-fg" \| "danger-subtle" \| "danger-text" \| "warning" \| "warning-hover" \| "warning-fg" \| "warning-subtle" \| "warning-text" \| "success" \| "success-hover" \| "success-fg" \| "success-subtle" \| "success-text" \| "info" \| "info-hover" \| "info-fg" \| "info-subtle" \| "info-text" \| "text-muted"` | `accent-text` | A color token. Defaults to `"text"`. |
| `fontFamily` | `"body" \| "heading" \| "monospace"` | — | A font token: `body`, `heading` or `monospace`. |
| `fontSize` | `"body" \| "code" \| "heading" \| "xxs" \| "xs" \| "sm" \| "md" \| "lg" \| "xl" \| "xxl" \| "xxxl" \| "xxxxl" \| "xxxxxl" \| "inherit"` | `inherit` | A font size token, e.g. `"sm"` or `"heading"`, or `"inherit"` to keep the parent's size. Defaults to `"body"`. |
| `fontWeight` | `"body" \| "heading" \| "medium" \| "bold" \| "semibold"` | — | A font weight token: `body`, `medium`, `semibold`, `heading` or `bold`. |
| `lineHeight` | `"body" \| "heading" \| "inherit"` | `inherit` | `body` or `heading`, or `"inherit"` to keep the parent's. Defaults to `"body"`. |
Also accepts [styling escape hatches](https://design-system.blocks-ui.com/components/box.md#escape-hatches) and [margin props](https://design-system.blocks-ui.com/components/box.md#spacing), and the native attributes of the element it renders.
## Accessibility
- Link text should make sense out of context, since screen readers can list a page’s links. Avoid “click here”.
- The browser’s focus ring shows on keyboard focus; the optional reset draws it in the focus-ring color.
- Don’t rely on color alone inside body text: the default underline keeps links distinguishable.
================================================================================
title: Card
section: Components: Content
url: https://design-system.blocks-ui.com/components/card
markdown: https://design-system.blocks-ui.com/components/card.md
================================================================================
# Card
Groups related content with a subtle border, rounded corners and `md` padding. Card is a Box, so it takes every Box prop, renders on the server and keeps `as`. The caller supplies the heading and the actions.
```tsx
import { Card } from '@blocks/design-system'
```
## Usage
Put a heading and a native link or button inside the card. The card stays static; its link is the focus target, so keyboard and screen reader users meet one clear control per card.
**Example: Station results** (`examples/card/station-results.tsx`)
```tsx
import { BodySmall, Card, Grid, Heading, Link } from '@blocks/design-system'
const results = [
{ id: 'mount-hood', name: 'Mount Hood', detail: 'Oregon · 84 in of snow' },
{ id: 'alta', name: 'Alta', detail: 'Utah · 102 in of snow' },
]
export default function StationResults() {
return (
{results.map((result) => (
{result.name}
{result.detail}
{/* The card is static; its link is the one focus target. */}
Open station
))}
)
}
```
## As an article
Render a self-contained item `as="article"` and name it with its heading.
**Example: Article card** (`examples/card/article-card.tsx`)
```tsx
import { Body, Button, Card, Heading, Stack } from '@blocks/design-system'
export default function ArticleCard() {
return (
Storm cycle ending
Snowfall tapers by Thursday; winds stay strong on exposed ridges.
)
}
```
## Borders and padding
`borderColor`, `borderWidth` and `borderStyle` take tokens; `borderRadius` and the Box padding props override the defaults.
**Example: Border options** (`examples/card/border-options.tsx`)
```tsx
import { Body, Card, Stack } from '@blocks/design-system'
export default function BorderOptions() {
return (
Default
Selected
Drop files here
)
}
```
## Props
**`Card` props**
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `as` | `ElementType` | — | The element or component to render, e.g. `as={NextLink}`. |
| `borderColor` | `"text" \| "overlay" \| "bg" \| "bg-subtle" \| "surface" \| "surface-hover" \| "surface-active" \| "selected" \| "border-subtle" \| "border" \| "border-strong" \| "focus-ring" \| "accent" \| "accent-hover" \| "accent-fg" \| "accent-subtle" \| "accent-text" \| "danger" \| "danger-hover" \| "danger-fg" \| "danger-subtle" \| "danger-text" \| "warning" \| "warning-hover" \| "warning-fg" \| "warning-subtle" \| "warning-text" \| "success" \| "success-hover" \| "success-fg" \| "success-subtle" \| "success-text" \| "info" \| "info-hover" \| "info-fg" \| "info-subtle" \| "info-text" \| "text-muted"` | `border-subtle` | A color token for the border, e.g. `"border"`. |
| `borderRadius` | `"button" \| "circle" \| "sm" \| "md" \| "xl" \| "xxl" \| "xxxl" \| "none" \| "pill"` | `md` | A border radius token, e.g. `"md"`, `"pill"` or `"circle"`. |
| `borderStyle` | `"none" \| "solid" \| "dashed" \| "dotted"` | `solid` | The border line style. |
| `borderWidth` | `"sm" \| "md" \| "lg" \| "none"` | `sm` | A border width token: `none`, `sm`, `md` or `lg`. |
Also accepts [Box layout props](https://design-system.blocks-ui.com/components/box.md#props), [styling escape hatches](https://design-system.blocks-ui.com/components/box.md#escape-hatches), [margin props](https://design-system.blocks-ui.com/components/box.md#spacing) and [padding props](https://design-system.blocks-ui.com/components/box.md#spacing), and the native attributes of the element it renders.
## Accessibility
- Don’t make a whole card clickable with a handler on the container. Put a real link inside it, and give each card’s link a distinct name, as in “Open Alta”.
- Lists of cards are lists: render them `as="ul"` with `as="li"` cards.
================================================================================
title: Badge and Spinner
section: Components: Content
url: https://design-system.blocks-ui.com/components/status
markdown: https://design-system.blocks-ui.com/components/status.md
================================================================================
# Badge and Spinner
Status feedback. `Badge` labels a state in a word or two; `Spinner` says something is in progress. Both render plain spans on the server.
```tsx
import { Badge, Spinner } from '@blocks/design-system'
```
## A pending task
Pair a named Spinner with words. When the work finishes, replace both with a Badge that states the result, inside a `role="status"` region so screen readers announce the change.
**Example: Sync a station** (`examples/status/sync-station.tsx`)
```tsx
'use client'
import { Badge, Button, Spinner, Stack } from '@blocks/design-system'
import { useState } from 'react'
type State = 'idle' | 'syncing' | 'synced'
export default function SyncStation() {
const [state, setState] = useState('idle')
function sync() {
setState('syncing')
// Stands in for a request; the docs journey controls the clock.
setTimeout(() => setState('synced'), 1500)
}
return (
{state === 'syncing' && }
{state === 'idle' && Not synced }
{state === 'syncing' && Syncing }
{state === 'synced' && Synced just now }
)
}
```
## Badge tones
`tone` picks a semantic color: `neutral` (the default), `accent`, `info`, `success`, `warning` or `danger`. `variant="solid"` fills the badge for more emphasis.
**Example: Tones** (`examples/status/badge-tones.tsx`)
```tsx
import { Badge, Stack } from '@blocks/design-system'
const tones = ['neutral', 'accent', 'info', 'success', 'warning', 'danger'] as const
export default function BadgeTones() {
return (
{tones.map((tone) => (
{tone}
))}
{tones.map((tone) => (
{tone}
))}
)
}
```
## Spinner sizes
`sm` and `md` match the icon sizes; `lg` matches a medium control. `label` names the status (“Loading” by default). Under reduced motion the spinner keeps turning, ten times slower, so it still reads as busy.
**Example: Sizes** (`examples/status/spinner-sizes.tsx`)
```tsx
import { Spinner, Stack } from '@blocks/design-system'
export default function SpinnerSizes() {
return (
)
}
```
## Props
**`Badge` props**
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `tone` | `"accent" \| "danger" \| "warning" \| "success" \| "info" \| "neutral"` | `neutral` | The semantic color. Defaults to `"neutral"`. |
| `variant` | `"subtle" \| "solid"` | `subtle` | `"subtle"` (default) tints the background; `"solid"` fills it. |
Also accepts [styling escape hatches](https://design-system.blocks-ui.com/components/box.md#escape-hatches) and [a ref](https://design-system.blocks-ui.com/components/box.md#refs), and the native attributes of the element it renders.
**`Spinner` props**
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `label` | `string` | `Loading` | Announced to screen readers. Defaults to "Loading". |
| `size` | `"sm" \| "md" \| "lg"` | `md` | `sm` and `md` match the icon sizes; `lg` matches a medium control. |
Also accepts [styling escape hatches](https://design-system.blocks-ui.com/components/box.md#escape-hatches) and [a ref](https://design-system.blocks-ui.com/components/box.md#refs), and the native attributes of the element it renders.
## Accessibility
- Color is never the only signal: a badge’s words carry the state, so “Synced” reads the same in grayscale.
- Spinner is a `role="status"` region. Give it a specific `label` (“Syncing Mount Hood”) and remove it when the work ends.
- Don’t put a Spinner inside a button’s label; disable the button and show the Spinner beside it.
================================================================================
title: Table
section: Components: Content
url: https://design-system.blocks-ui.com/components/table
markdown: https://design-system.blocks-ui.com/components/table.md
================================================================================
# Table
A semantic data table for rows of comparable values. The parts render the native ``, ``, ``, ``, `` and ` ` elements, styled from the tokens. Each is a Box, so cells take Box props such as `textAlign`. Use Grid or Stack for layout, not Table.
```tsx
import { Table, TableBody, TableCell, TableContainer, TableHead, TableHeader, TableRow } from '@blocks/design-system'
```
## Usage
Name the table with a native `` as its first child. Give column headers `scope="col"`; when the first cell of each row identifies the row, make it a `TableHead` with `scope="row"`. Links inside cells stay ordinary links.
**Example: Holdings** (`examples/table/holdings.tsx`)
```tsx
import {
Link,
Table,
TableBody,
TableCell,
TableContainer,
TableHead,
TableHeader,
TableRow,
} from '@blocks/design-system'
const holdings = [
{ symbol: 'VTI', name: 'Vanguard Total Stock Market ETF', shares: 120, price: '$291.40', value: '$34,968.00', change: '+0.8%' },
{ symbol: 'VXUS', name: 'Vanguard Total International Stock ETF', shares: 210, price: '$66.12', value: '$13,885.20', change: '-0.3%' },
{ symbol: 'BND', name: 'Vanguard Total Bond Market ETF', shares: 95, price: '$73.05', value: '$6,939.75', change: '+0.1%' },
]
export default function Holdings() {
return (
Holdings on December 1, 2026
Symbol
Name
Shares
Price
Value
Today
{holdings.map((holding) => (
{holding.symbol}
{holding.name}
{holding.shares}
{holding.price}
{holding.value}
{holding.change}
))}
)
}
```
## Wide tables
`TableContainer` lets a table scroll sideways inside itself instead of widening the page on a narrow screen. Make it reachable by keyboard: `tabIndex={0}`, `role="region"` and `aria-labelledby` pointing at the caption, as above.
## Empty and loading states
Keep the header row and put the message in a single cell that spans every column, so the table still says what it would hold.
**Example: Empty watchlist** (`examples/table/empty-state.tsx`)
```tsx
import { BodySmall, Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@blocks/design-system'
export default function EmptyState() {
return (
Watchlist
Symbol
Price
No equities on your watchlist yet.
)
}
```
## Parts
| Part | Element |
| --- | --- |
| `Table` | `` |
| `TableContainer` | `` that scrolls horizontally |
| `TableHeader` | `` |
| `TableBody` | `` |
| `TableRow` | `` |
| `TableHead` | ``, with `scope` |
| `TableCell` | ` ` |
## Props
**`Table` props**
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `as` | `ElementType` | — | The element or component to render, e.g. `as={NextLink}`. |
Also accepts [Box layout props](https://design-system.blocks-ui.com/components/box.md#props), [styling escape hatches](https://design-system.blocks-ui.com/components/box.md#escape-hatches), [margin props](https://design-system.blocks-ui.com/components/box.md#spacing), [padding props](https://design-system.blocks-ui.com/components/box.md#spacing) and [a ref](https://design-system.blocks-ui.com/components/box.md#refs), and the native attributes of the element it renders.
**`TableContainer` props**
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `as` | `ElementType` | — | The element or component to render, e.g. `as={NextLink}`. |
Also accepts [Box layout props](https://design-system.blocks-ui.com/components/box.md#props), [styling escape hatches](https://design-system.blocks-ui.com/components/box.md#escape-hatches), [margin props](https://design-system.blocks-ui.com/components/box.md#spacing), [padding props](https://design-system.blocks-ui.com/components/box.md#spacing) and [a ref](https://design-system.blocks-ui.com/components/box.md#refs), and the native attributes of the element it renders.
**`TableHeader` props**
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `as` | `ElementType` | — | The element or component to render, e.g. `as={NextLink}`. |
Also accepts [Box layout props](https://design-system.blocks-ui.com/components/box.md#props), [styling escape hatches](https://design-system.blocks-ui.com/components/box.md#escape-hatches), [margin props](https://design-system.blocks-ui.com/components/box.md#spacing), [padding props](https://design-system.blocks-ui.com/components/box.md#spacing) and [a ref](https://design-system.blocks-ui.com/components/box.md#refs), and the native attributes of the element it renders.
**`TableBody` props**
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `as` | `ElementType` | — | The element or component to render, e.g. `as={NextLink}`. |
Also accepts [Box layout props](https://design-system.blocks-ui.com/components/box.md#props), [styling escape hatches](https://design-system.blocks-ui.com/components/box.md#escape-hatches), [margin props](https://design-system.blocks-ui.com/components/box.md#spacing), [padding props](https://design-system.blocks-ui.com/components/box.md#spacing) and [a ref](https://design-system.blocks-ui.com/components/box.md#refs), and the native attributes of the element it renders.
**`TableRow` props**
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `as` | `ElementType` | — | The element or component to render, e.g. `as={NextLink}`. |
Also accepts [Box layout props](https://design-system.blocks-ui.com/components/box.md#props), [styling escape hatches](https://design-system.blocks-ui.com/components/box.md#escape-hatches), [margin props](https://design-system.blocks-ui.com/components/box.md#spacing), [padding props](https://design-system.blocks-ui.com/components/box.md#spacing) and [a ref](https://design-system.blocks-ui.com/components/box.md#refs), and the native attributes of the element it renders.
**`TableHead` props**
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `as` | `ElementType` | — | The element or component to render, e.g. `as={NextLink}`. |
Also accepts [Box layout props](https://design-system.blocks-ui.com/components/box.md#props), [styling escape hatches](https://design-system.blocks-ui.com/components/box.md#escape-hatches), [margin props](https://design-system.blocks-ui.com/components/box.md#spacing), [padding props](https://design-system.blocks-ui.com/components/box.md#spacing) and [a ref](https://design-system.blocks-ui.com/components/box.md#refs), and the native attributes of the element it renders.
**`TableCell` props**
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `as` | `ElementType` | — | The element or component to render, e.g. `as={NextLink}`. |
Also accepts [Box layout props](https://design-system.blocks-ui.com/components/box.md#props), [styling escape hatches](https://design-system.blocks-ui.com/components/box.md#escape-hatches), [margin props](https://design-system.blocks-ui.com/components/box.md#spacing), [padding props](https://design-system.blocks-ui.com/components/box.md#spacing) and [a ref](https://design-system.blocks-ui.com/components/box.md#refs), and the native attributes of the element it renders.
## Accessibility
- A caption names the table for screen readers and everyone else; prefer it to a nearby heading.
- `scope` tells assistive technology which cells a header describes. Without it, reading a cell gives no context.
- Sorting controls belong in a button inside the header cell, not on the cell itself, so they are focusable and announced.
================================================================================
title: Button
section: Components: Forms
url: https://design-system.blocks-ui.com/components/button
markdown: https://design-system.blocks-ui.com/components/button.md
================================================================================
# Button
A native `