Officina UI
Components

Typography

Polymorphic text component with a full variant, tone, and weight scale.

Typography renders text on the design scale, with as for the element.

Example

Preview

Heading

Body text in the base tone, set at a comfortable reading measure.

Muted secondary text.

Caption / metadata
import { Typography } from '@officina/ui';

<Typography variant="h2">Heading</Typography>
<Typography variant="body" tone="muted">Secondary copy</Typography>

API

PropTypeDefaultDescription
align"center" | "end" | "justify" | "left" | "right" | "start" | null—
asElementType—Render as a different element/component while keeping the styles.
gutterBottomboolean | null—
leading"normal" | "relaxed" | "tight" | null—
lineClampenum—Truncate after N lines with an ellipsis.
noWrapboolean | null—
tone"base" | "muted" | "subtle" | "accent" | "danger" | "success" | "warning" | null—
transform"capitalize" | "lowercase" | "none" | "uppercase" | null—
variant"body" | "caption" | "code" | "h1" | "h2" | "h3" | "h4" | "title" | "display" | "body-sm" | "overline" | nullbody
weight"bold" | "medium" | "regular" | "semibold" | null—

On this page