);
/**
* 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 } }]));
/**
* 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://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 `