Install
Pull Section Label from the barrel for everyday use, or the granular path when you want a tighter bundle.
import { SectionLabel } from "@brika/clay";import { SectionLabel } from "@brika/clay/components/section-label";A minimal example
Drop this into a page. Native HTML attributes pass through to the underlying primitive.
import { SectionLabel } from '@brika/clay/components/section-label';
/** Simple uppercase group divider above a list of cards. */
export default function SectionLabelDefaultDemo() {
return <SectionLabel>Recent activity</SectionLabel>;
}Section Label, every way
Accessibility
- Renders as
<p>by default, useas="h3"when it semantically introduces a group. - Tone colors are visual only; pair with an icon that has a meaningful
aria-labelwhen tone conveys status.
Theme tokens
Every CSS variable Section Label reads, with its default and the
dotted path you'd write in a ThemeConfig JSON
to override it. Set any of these in your theme to retune Section Label
without touching component code.
Section Label tokens
2 tokens--section-label-colorcolorvar(--muted-foreground)components.sectionLabel.colorForeground color of the section label text and the default-tone icon. Defaults to the muted role so the label reads as quiet metadata above a content group.
--section-label-icon-destructive-colorcolorvar(--destructive)components.sectionLabel.iconDestructiveColorIcon color used when `tone="destructive"` flags an error or dangerous-action label.
Override in a theme
Authoring a theme is plain JSON. Drop overrides under
components.sectionLabel, the names
are camelCase versions of the variable suffix.
{
"id": "my-theme",
"name": "My Theme",
"description": "...",
"accentSwatches": ["#000"],
"components": {
"sectionLabel": {
"color": "var(--muted-foreground)"
}
}
}
Then apply with applyTheme(myTheme)
(see the theming guide),
scope it to a subtree with themeToCssVars(myTheme, mode),
or consume any token directly in your own JSX with the matching Tailwind utility
(e.g. bg-section-label-…) — see the
chips on each token row.
API reference
Props specific to Section Label. Native HTML attributes pass through to the underlying primitive, see the component source on GitHub for the full type signature.