Skip to Content
ComponentsDisplay

Display

Large typographic headings for hero sections and marketing content. Renders as the matching semantic heading tag (h1h6) by default.

Display 1

Display 2

Display 3

Display 4

Display 5
Display 6
import { Display } from "@/components/ui/display"
<Display size="1">Hello world</Display>

Examples

All variants

Display 1 — h1

Display 2 — h2

Display 3 — h3

Display 4 — h4

Display 5 — h5
Display 6 — h6
<Display size="1">Display 1 — h1</Display> <Display size="2">Display 2 — h2</Display> <Display size="3">Display 3 — h3</Display> <Display size="4">Display 4 — h4</Display> <Display size="5">Display 5 — h5</Display> <Display size="6">Display 6 — h6</Display>

Custom tag with asChild

Display 2 rendered as a paragraph

<Display size="2" asChild> <p>Display 2 rendered as a paragraph</p> </Display>
Last updated on