@nl-design-system-candidate/heading-react
v1.1.7
Published
React implementation of the NL Design System Heading component
Downloads
1,745
Readme
Heading React
Heading text that can be set to the appropriate level in the heading structure.
Installation
Using npm
npm install @nl-design-system-candidate/heading-reactUsing pnpm
pnpm add @nl-design-system-candidate/heading-reactUsing yarn
yarn add @nl-design-system-candidate/heading-reactUsage
If you want the React component with styles
import { Heading } from '@nl-design-system-candidate/heading-react/css';
<Heading level="1">The quick brown fox jumps over the lazy dog.</Heading>;If you just want the React component and import the styles separately
import { Heading } from '@nl-design-system-candidate/heading-react';
<Heading level="1">The quick brown fox jumps over the lazy dog.</Heading>;Variants
Heading with appearance of another level
Used when a Heading should semantically have one heading level but visually another is preferred.
<Heading level="2" appearance="level-4">
This is a card heading that looks like h4 but is secretly and semantically h2.
</Heading>Design Tokens
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.
Other implementations
Want to use the Heading with other frameworks or vanilla JavaScript? The React component is based on @nl-design-system-candidate/heading-css.
Figma, Storybook and more
Read more about the Heading in Dutch and find links to other resources like Figma and Storybook on https://nldesignsystem.nl/heading.
