API and Development
Typography provides a layout container for structured text content with proper spacing, particularly useful for displaying lists, paragraphs, and formatted content. It wraps text content in a vertical flex container with consistent spacing between elements. It applies proper styling to lists (ordered and unordered) and ensures consistent typography patterns for structured content. The component adjusts spacing based on content type, making it ideal for displaying multi-paragraph text, lists, and mixed content.
| Name | Default | Description |
|---|---|---|
type | TypographyType.Default | The typography type determining spacing. Options: Default, Data, Critical. |
children | required | The content to display. Can include text, lists, paragraphs, or other React nodes. |
ul and ol use 1em inline-start padding and no margin. List items have no inline padding; only the boundaries between sibling items receive --list-item-y-padding, so the first and last items have no outer block padding.
Use for bulleted lists.