-
-
-
-
-
-
-
{heading}
-
{textContent}
-
+
+
+
+
+
- )}
+
+
+ {heading}
+
+
{textContent}
+
+
);
},
diff --git a/packages/storybook/src/community/alert.md b/packages/storybook/src/community/alert.md
index 618eba588..eb788e862 100644
--- a/packages/storybook/src/community/alert.md
+++ b/packages/storybook/src/community/alert.md
@@ -12,24 +12,6 @@ Gebruik niet een alert voor een algemene aankondiging die op meerdere pagina's s
## Usage
-- Als je wilt de Alert gebruiken met je eigen `children`
-
-```tsx
-import { Alert, Heading, Paragraph } from '@rijkshuisstijl-community/components-react';
-
-
-
-
-
-
Heading
-
Lorem ipsum dolor sit amet, consectetur ad * isicing elit, sed do eiusmod *
-
-
-;
-```
-
-- Als je wilt de Alert gebruiken met een `type` en defualt `children`
-
```tsx
import { Alert } from '@rijkshuisstijl-community/components-react';
diff --git a/packages/storybook/src/community/alert.stories.tsx b/packages/storybook/src/community/alert.stories.tsx
index fbd0d39d0..c6d6d7ea0 100644
--- a/packages/storybook/src/community/alert.stories.tsx
+++ b/packages/storybook/src/community/alert.stories.tsx
@@ -4,21 +4,10 @@ import { Alert } from '@rijkshuisstijl-community/components-react';
import type { Meta, StoryObj } from '@storybook/react';
import readme from './alert.md?raw';
-interface AlertStoryComponentProps {
- type: 'info' | 'error' | 'warning' | 'ok';
- heading: string;
- textContent: string;
- headingLevel: number;
-}
-
-const AlertStoryComponent = ({ type, heading, textContent, headingLevel }: AlertStoryComponentProps) => {
- return
;
-};
-
const meta = {
title: 'Rijkshuisstijl/Alert',
id: 'rhc-alert',
- component: AlertStoryComponent,
+ component: Alert,
argTypes: {
type: {
description: 'Alert type',
@@ -40,7 +29,7 @@ const meta = {
headingLevel: {
description: 'Alert heading level',
control: { type: 'select' },
- options: [1, 2, 3, 4, 5, 6],
+ options: [1, 2, 3, 4, 5],
table: {
category: 'Demo',
},
@@ -69,8 +58,7 @@ const meta = {
},
},
},
- render: AlertStoryComponent,
-} as Meta
;
+} as Meta;
export default meta;
@@ -78,7 +66,6 @@ export const Informative: StoryObj = {
args: {
type: 'info',
heading: 'Heading',
- headingLevel: 3,
textContent: 'Lorem ipsum dolor sit amet, consectetur ad * isicing elit, sed do eiusmod *',
},
};
@@ -87,7 +74,6 @@ export const Negative: StoryObj = {
args: {
type: 'error',
heading: 'Heading',
- headingLevel: 3,
textContent: 'Lorem ipsum dolor sit amet, consectetur ad * isicing elit, sed do eiusmod *',
},
};
@@ -96,7 +82,6 @@ export const Positive: StoryObj = {
args: {
type: 'ok',
heading: 'Heading',
- headingLevel: 3,
textContent: 'Lorem ipsum dolor sit amet, consectetur ad * isicing elit, sed do eiusmod *',
},
};
@@ -105,7 +90,6 @@ export const Warning: StoryObj = {
args: {
type: 'warning',
heading: 'Heading',
- headingLevel: 3,
textContent: 'Lorem ipsum dolor sit amet, consectetur ad * isicing elit, sed do eiusmod *',
},
};
diff --git a/packages/storybook/src/community/checkbox-group.md b/packages/storybook/src/community/checkbox-group.md
index 3d31896c7..7f81f27a9 100644
--- a/packages/storybook/src/community/checkbox-group.md
+++ b/packages/storybook/src/community/checkbox-group.md
@@ -6,8 +6,6 @@
## Usage
-- Als je wilt de CheckboxGroup gebruiken met je eigen `children`
-
```tsx
import { CheckboxGroup, Checkbox } from '@rijkshuisstijl-community/components-react';