Typography
Standardized typographic text hierarchy styles including headings, body paragraphs, colors, and inline code elements.
import
import { Typography } from "@/components/ui/typography/typography";$
npx @bloomui-react/cli add typographytypography.tsx
Default
Standard paragraph text typography element.
Bloom UI is an accessible, customizable, and high-performance React component library designed with modern aesthetic tokens.
Headings Scale
Typographic hierarchy sizes ranging from H1 to H6 headings.
variant:
h1 | h2 | h3 | h4 | h5 | h6Heading 1 — Display
Heading 2 — Section Title
Heading 3 — Subsection Title
Heading 4 — Card Header
Heading 5 — Subheading
Heading 6 — Small Label
Colors
Apply theme colors to match the design system color scheme.
color:
default | muted | primary | secondary | accent | success | warning | dangerDefault text color
Muted text color
Primary text color
Secondary text color
Accent text color
Success text color
Warning text color
Danger text color
Line Clamping
Clamp long paragraphs to a max line count.
clampLines: numbershowExpandToggle: boolean
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'large' | 'small' | 'muted' | 'code' | 'p' | Typographic size and HTML tag mapping. |
| color | 'default' | 'muted' | 'primary' | 'secondary' | 'accent' | 'success' | 'warning' | 'danger' | 'default' | Theme color palette of typography text. |
| clampLines | number | — | Limits text to specified number of lines. |
| showExpandToggle | boolean | false | Shows a read-more/show-less button. |