Import by:
1import { H1, H2, H3, H4, H5, H6 } from "@parsley_design_systems/design-system"
Alternatively, the headings can be applied directly via the native heading elements which all have the same styles applied.
1<h1>This is a heading level 1.</h1>
2<h2>This is a heading level 2.</h2>
3<h3>This is a heading level 3.</h3>
4<h4>This is a heading level 4.</h4>
5<h5>This is a heading level 5.</h5>
6<h6>This is a heading level 6.</h6>
And heading levels can be applied by:
1<h2 class="h4">This is a heading level 2.</h2>
2
3<h2 className="h4">This is a heading level 2.</h2>
Available props
Props for the H1, H2, H3, H4, H5, H6 components| Property | Type | Default | Required | Description |
|---|
| children | string | | | The content of the component. |
|---|
| headingStyle | oneOf: 1, 2, 3, 4, 5, 6 | | false | Allows for a heading level style to be set on the component. |
|---|
| lineHeight | string - see the typeface line heights in Typography | small - 125% | false | Allows for a line height to be set on the component. |
|---|
| className | string | | false | Allows for specific classNames to be set. |
|---|