React implementation of the NL Design System Heading component
npm install @nl-design-system-candidate/heading-reactHeading text that can be set to the appropriate level in the heading structure.
Using npm
``shell`
npm install @nl-design-system-candidate/heading-react
Using pnpm
`shell`
pnpm add @nl-design-system-candidate/heading-react
Using yarn
`shell`
yarn add @nl-design-system-candidate/heading-react
If you want the React component with styles
`jsx
import { Heading } from '@nl-design-system-candidate/heading-react/css';
`
If you just want the React component and import the styles separately
`jsx
import { Heading } from '@nl-design-system-candidate/heading-react';
`
Used when a Heading should semantically have one heading level but visually another is preferred.
`jsx``
This is a card heading that looks like h4 but is secretly and semantically h2.
All NL Design System components are white label. Use Heading design tokens to ensure it matches your brand styles. https://nldesignsystem.nl/handboek/huisstijl/design-tokens/.
The tokens used for Heading can be found in the tokens documentation @nl-design-system-candidate/heading-tokens.
Want to use the Heading with other frameworks or vanilla JavaScript? The React component is based on
@nl-design-system-candidate/heading-css.
Read more about the Heading in Dutch and find links to other resources like Figma and Storybook on https://nldesignsystem.nl/heading.