Components Typography
Caption
StableSmall supporting text for figures, timestamps and footnotes.
Caption is 12px secondary text. Use it with `as="figcaption"` under figures, and for timestamps, footnotes and legal small print. For text that helps someone fill in a form field, use the description of FormField, which is linked to the control.
Overview
Deployment completed
11 November 2026 at 09:42 · by Priya Raman
import { Caption, Stack, Text } from '@bindshq/stance-react';
export function Basic() {
return (
<Stack gap={1}>
<Text size="sm" weight="medium">
Deployment completed
</Text>
<Caption>11 November 2026 at 09:42 · by Priya Raman</Caption>
</Stack>
);
}Light, dark and high contrast
Every Stance component is designed and tested in all three appearance modes.
Deployment completed
11 November 2026 at 09:42 · by Priya Raman
Deployment completed
11 November 2026 at 09:42 · by Priya Raman
Deployment completed
11 November 2026 at 09:42 · by Priya Raman
Import
import { Caption } from '@bindshq/stance-react';Examples
import { Caption } from '@bindshq/stance-react';
export function Figure() {
return (
<figure style={{ margin: 0, width: 280 }}>
<div
style={{ height: 120, borderRadius: 8, background: 'var(--st-color-bg-muted)' }}
aria-hidden="true"
/>
<Caption as="figcaption" align="center" style={{ marginTop: 8 }}>
Signature preview in Outlook for Mac
</Caption>
</figure>
);
}Default
Muted
Subtle
Danger
import { Caption, Stack } from '@bindshq/stance-react';
export function Tones() {
return (
<Stack gap={1}>
<Caption tone="default">Default</Caption>
<Caption>Muted</Caption>
<Caption tone="subtle">Subtle</Caption>
<Caption tone="danger">Danger</Caption>
</Stack>
);
}API reference
| Prop | Type | Default | Description |
|---|---|---|---|
as | keyof JSX.IntrinsicElements | 'p' | Element; use figcaption inside figures. |
tone | 'muted' | 'subtle' | 'default' | 'danger' | 'muted' | Colour. |
align | 'start' | 'center' | 'end' | None | Alignment. |
Accessibility
- Muted captions meet 4.5:1 contrast in every theme.
- Use figcaption so the caption is associated with its figure.
Usage guidelines
Do
- Keep captions to one or two lines.
Don’t
- Put essential instructions in captions.