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

PropTypeDescription
colorstringOne 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"
italicboolean
truncateboolean
maxLinesnumber
tabularNumsboolean
widthnumber | string
textstringHeading text
size"sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl"Default "md"
strongbooleanDefault true

Link to Title · All standard components

On this page