import { Meta, StoryObj } from '@storybook/react-webpack5';
import Header, { HeaderProps } from '..';
import {
createSandboxStory,
globalScope,
} from '../../../.storybook/components/sandbox/SandboxEditor';
const withContainer = (Story: any) => (
);
/**
* Not all stories need access to all controls as it causes unnecessary UI noise.
*/
const hideControls = (args: string[]) =>
Object.fromEntries(args.map((item) => [item, { table: { disable: true } }]));
/**
* **Deprecated as a standalone component:** use `Section.Header` instead, as a header should only be used within a `Section`.
* The stories below document the `Header` component, which is used to structure content and convey hierarchy.
* For more details, refer to the [design documentation](https://docs.wise.design/components/section-header).
*/
const meta: Meta = {
component: Header,
title: 'Typography/Header',
argTypes: {
level: {
type: {
name: 'enum',
value: ['section', 'group'],
},
table: {
type: {
summary: 'HeaderLevel',
},
},
description: 'Defines the hierarchical level of the header.',
},
as: {
type: {
name: 'enum',
value: ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'legend'],
},
table: {
type: {
summary: 'HeaderAs',
},
},
description:
'Defines which HTML element the Header will render as. Use `legend` only as the first child of a `