Headings are used to display titles and subtitles with semantic HTML heading elements.
import Heading from "@radui/ui/Heading" const HeadingExamples = () => ( <div> <Heading>Heading 1</Heading> <Heading as="h2">Heading 2</Heading> <Heading as="h3">Heading 3</Heading> <Heading as="h4">Heading 4</Heading> <Heading as="h5">Heading 5</Heading> <Heading as="h6">Heading 6</Heading> </div> )
A component for displaying headings with different levels (h1-h6) and customizable styling.
Prop | Type | Default |
---|---|---|
as | enum | h1 |
children | ReactNode | -- |
className | string | '' |
customRootClass | string | '' |