@rijkshuisstijl-community/alert-react
v3.0.2
Published
Alert component
Readme
Omschrijving
Dit package bevat de specifieke code voor het component. Als je alle rijkshuisstijl community componenten wil kijk dan naar [https://github.com/nl-design-system/rijkshuisstijl-community/blob/main/packages/components-react/README.md]. Voor verdere informatie over het inzet van de component kijk naar onze documentatie [https://rijkshuisstijl-community.vercel.app/?path=/docs/rhc-alert--docs]
Installatie
pnpm add @rijkshuisstijl-community/alert-reactGebruik
import { Alert } from '@rijkshuisstijl-community/alert-react';
<Alert type="info">
<Heading level={3}>Heading</Heading>
<Paragraph>Lorem ipsum dolor sit amet, consectetur ad * isicing elit, sed do eiusmod *</Paragraph>
</Alert>;Testing
We bundelen de CSS direct mee met de componenten zodat je dit niet apart hoeft in te laden. Let wel op met unit tests die in de Node omgeving draaien: die ondersteunen niet altijd standaard .css files. Voor vitest moet je bijvoorbeeld pool: 'vmThreads', aanzetten in de config als je de volgende error tegenkomt: TypeError: Unknown file extension ".css"
Rijkshuisstijl Community Componenten
Direct aan de slag met CSS | React | Web Components | Twig
