import Heading from '@precursor/heading';Example
A strong foundation.
import Heading from '@precursor/heading';
export default function Example() {
return (
<Heading as="h2" size="h1">
A strong foundation.
</Heading>
);
}
Props
| Prop | Type | Default | Notes |
|---|---|---|---|
childrenRequired | React.ReactNode | — | — |
id | string | — | — |
as | Headings | weight ?? 'h2' | — |
size | Headings | weight ?? 'h2' | — |
weight | Headings | — | Sets the heading level and size when their dedicated props are omitted. |