React implementation of the NL Design System Code component
npm install @nl-design-system-candidate/code-reactComputer code that is part of running text.
Using npm
``shell`
npm install @nl-design-system-candidate/code-react
Using pnpm
`shell`
pnpm add @nl-design-system-candidate/code-react
Using yarn
`shell`
yarn add @nl-design-system-candidate/code-react
If you want the React component with styles
`jsx
import { Code } from '@nl-design-system-candidate/code-react/css';
{import { IconCode } from '@tabler/icons-react';};
`
If you just want the React component and import the styles separately
`jsx
import { Code } from '@nl-design-system-candidate/code-react';
{import { IconCode } from '@tabler/icons-react';};
``
All NL Design System components are white label. Use Code design tokens to ensure it matches your brand styles. See nldesignsystem.nl/code/#design-tokens
for a full overview.
These tokens are also documented in @nl-design-system-candidate/code-tokens.
Want to use the Code with other frameworks or vanilla JavaScript? The React component is based on
@nl-design-system-candidate/code-css.
Read more about the Code in Dutch and find links to other resources like Figma and Storybook on https://nldesignsystem.nl/code.