- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore - magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo - consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla - pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est - laborum. -
, - ], + children: '', + hidden: false, }, tags: ['autodocs'], parameters: { @@ -53,6 +50,18 @@ export default meta; type Story = StoryObj+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore + magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo + consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla + pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est + laborum. +
, + ], + }, parameters: { docs: { description: { @@ -62,4 +71,18 @@ export const Default: Story = { }, }; +export const Hidden: Story = { + args: { + ...Default.args, + hidden: true, + }, + parameters: { + docs: { + description: { + story: hiddenDocs, + }, + }, + }, +}; + export const DesignTokens = designTokenStory(meta); diff --git a/packages/storybook-html/src/Blockquote.stories.tsx b/packages/storybook-html/src/Blockquote.stories.tsx index b85cac33cb6..93cf48c01a6 100644 --- a/packages/storybook-html/src/Blockquote.stories.tsx +++ b/packages/storybook-html/src/Blockquote.stories.tsx @@ -4,11 +4,13 @@ import type { Meta, StoryObj } from '@storybook/react'; import readme from '@utrecht/components/blockquote/README.md?raw'; import tokensDefinition from '@utrecht/components/blockquote/tokens.json'; import tokens from '@utrecht/design-tokens/dist/index.json'; -import React from 'react'; +import React, { HTMLAttributes, PropsWithChildren } from 'react'; +import hiddenDocs from './_hidden.md?raw'; import { htmlContentDecorator } from './decorator'; import { designTokenStory } from './design-token-story'; +import { hidden } from './util/htmlArgTypes'; -const Blockquote = ({ children }) =>{children}; +const Blockquote = ({ ...restProps }: PropsWithChildren
{children}
;
+const Code = ({ ...restProps }: PropsWithChildren
;
const meta = {
title: 'HTML Component/Code',
@@ -20,9 +22,11 @@ const meta = {
description: 'Code',
control: 'text',
},
+ hidden,
},
args: {
children: '',
+ hidden: false,
},
tags: ['autodocs'],
parameters: {
@@ -54,4 +58,18 @@ export const Default: Story = {
},
};
+export const Hidden: Story = {
+ args: {
+ ...Default.args,
+ hidden: true,
+ },
+ parameters: {
+ docs: {
+ description: {
+ story: hiddenDocs,
+ },
+ },
+ },
+};
+
export const DesignTokens = designTokenStory(meta);
diff --git a/packages/storybook-html/src/CodeBlock.stories.tsx b/packages/storybook-html/src/CodeBlock.stories.tsx
index 426ed3af9db..ea25e0c99da 100644
--- a/packages/storybook-html/src/CodeBlock.stories.tsx
+++ b/packages/storybook-html/src/CodeBlock.stories.tsx
@@ -4,12 +4,14 @@ import type { Meta, StoryObj } from '@storybook/react';
import readme from '@utrecht/components/code-block/README.md?raw';
import tokensDefinition from '@utrecht/components/code-block/tokens.json';
import tokens from '@utrecht/design-tokens/dist/index.json';
-import React from 'react';
+import React, { HTMLAttributes, PropsWithChildren } from 'react';
+import hiddenDocs from './_hidden.md?raw';
import { htmlContentDecorator } from './decorator';
import { designTokenStory } from './design-token-story';
+import { hidden } from './util/htmlArgTypes';
-const CodeBlock = ({ children }) => (
- +const CodeBlock = ({ children, ...restProps }: PropsWithChildren>) => ( + ); @@ -24,6 +26,7 @@ const meta = { description: 'Code', control: 'text', }, + hidden, }, args: { children: ` @@ -37,6 +40,7 @@ const meta = {{children}