🚀 Beta mode be careful of the bugs

Heading

Preview

The Heading Preview component is used to display a heading with a specific level ( h1, h2, h3, etc. ) and customizable text. It leverages Tailwind CSS for styling, making it flexible and easy to adapt to different designs.

Heading

Heading H1

Heading H2

Heading H3

Heading H4

Heading H5
Heading H6

Features

  • Supports dynamic heading levels (h1–h6).
  • Easily customizable using Tailwind CSS utility classes.
  • Responsive and accessible.

Installation

pnpm dlx shadcn@latest add https://shadwui.com/r/heading.json

Usage

import { Heading } from "@/components/shadwui/heading";
<Heading> children </Heading>

Examples

Here is the usage of every Heading such as H1, H2, H3, H4, H5, H6.

H1

Heading 01

Heading H1

H2

Heading 02

Heading H2

H3

Heading 03

Heading H3

H4

Heading 04

Heading H4

H5

Heading 05
Heading H5

H6

Heading 06
Heading H6

Options

Heading LevelHeading VariantExample Output
h1variant="h1"Heading H1
h2variant="h2"Heading H2
h3variant="h3"Heading h3
h4variant="h4" defaultHeading H4
h5variant="h5"Heading H5
h6variant="h6"Heading H6

On this page