Title
A heading. The level sets the tag and the size sets the look, so a section can drop a step in the outline without shrinking on screen.
Reach for it
A heading, with the level set by the outline and the size set by the design.
Not for
Making text big. Skipping a level to get a size breaks the page outline.
Level and size are separate
Pick the level from where the section sits in the page, and the size from how much weight it should carry. Tying them together is what produces a page that jumps from h2 to h4 because h3 looked too big.
Product updates
Repayments
Outstanding
This month
Direct debit
API reference
Paragraph
| Prop | Type | Default | Description |
|---|---|---|---|
| tone | 'default' | 'muted' | 'subtle' | 'onColor' | 'success' | 'warning' | 'danger' | 'info' | default | |
| size | '1' | '2' | '3' | '4' | '5' | '6' | '7' | 4 | |
| weight | 'regular' | 'medium' | regular | |
| isTruncated | boolean | false |
Also takes the standard attributes of a p, minus className, style and color.
Title
| Prop | Type | Default | Description |
|---|---|---|---|
| level* | 1 | 2 | 3 | 4 | - | Document level. Pick it from the page outline, not from the size. |
| tone | 'default' | 'muted' | 'onColor' | 'success' | 'warning' | 'danger' | default | |
| size | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | 'display' | xl | |
| weight | 'normal' | 'medium' | medium |
Also takes the standard attributes of a heading, minus className, style and color.