import type { StoryObj, Meta } from '@storybook/react'; import { Heading, HeadingProps } from '@rocketseat-ignite-ui/react'; export default { title: 'Typography/Heading', component: Heading, args: { children: 'Lorem ipsum dolor', size: 'md', }, argTypes: { size: { options: ['sm', 'md', 'lg', '2xl', '4xl', '5xl', '6xl'], control: { type: 'select', }, }, children: { table: { disable: true, }, }, }, } as Meta; export const Default: StoryObj = {}; export const CustomTag: StoryObj = { args: { children: 'Custom Heading Element', as: 'h1', }, argTypes: { as: { options: ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'], control: { type: 'select', }, }, }, parameters: { docs: { description: { story: 'Por padrão o heading sempre será um `h2`, mas podemos alterar isso com a propriedade `as`.', }, }, }, };