Heading
Heading allows you to show headings on the page & has a bigger line height than regular text.
Props
Example: Sizes
These font sizes follow those available through our Design Tokens. If your text does not need to be a semantic heading (H1-H6), use Text instead.
Example: Colors
Example: Overflow & truncation
Example: Alignment
Example: Levels
For accessibility purposes, we allow you to override the heading level. We should have one level 1 per page & levels should be appropriately nested. E.g. level 1 followed by level 2 & level 2 followed by level 2 or level 3. We also allow headings without an accessibility level.