Title
A heading inside a Card or next to another component. A heading alone is markdown outside the fence. Use size "2xl" at most once in a surface, and "lg" for section headings. Size "sm" is an h4, "md" and "lg" are an h3 (default "md"), "xl" and larger are an h2. It is bold unless strong is false.
Examples
Loading examples…
Props
| Prop | Type | Description |
|---|---|---|
color | string | One of default|prose|primary|emphasis|secondary|tertiary|success|info|warning|caution|danger|discovery or a CSS color |
fontWeight | "normal" | "medium" | "semibold" | "bold" | |
textAlign | "start" | "center" | "end" | |
italic | boolean | |
truncate | boolean | |
maxLines | number | |
tabularNums | boolean | |
width | number | string | |
text | string | Heading text |
size | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | Default "md" |
strong | boolean | Default true |