import type { ComponentMeta, ComponentStory } from '@storybook/react'; import { Layout as LayoutComponent } from './layout'; /** * Layout - Storybook Meta */ export default { title: 'Templates/LayoutBase', component: LayoutComponent, args: { breadcrumbSchema: [], isHome: false, }, argTypes: { children: { control: { type: 'text', }, description: 'The article content.', type: { name: 'string', required: true, }, }, breadcrumbSchema: { control: { type: 'null', }, description: 'The JSON schema for breadcrumb items.', type: { name: 'object', required: true, value: {}, }, }, isHome: { control: { type: 'boolean', }, description: 'Determine if it is the homepage.', table: { category: 'Options', defaultValue: { summary: false }, }, type: { name: 'boolean', required: false, }, }, className: { control: { type: 'text', }, description: 'Set additional classnames to the article element.', table: { category: 'Styles', }, type: { name: 'string', required: false, }, }, useGrid: { control: { type: 'boolean', }, description: 'Use the grid layout.', table: { category: 'Options', }, type: { name: 'boolean', required: false, }, }, withExtraPadding: { control: { type: 'boolean', }, description: 'Set additional padding at the bottom of the page.', table: { category: 'Options', }, type: { name: 'boolean', required: false, }, }, }, decorators: [ (Story) => (
), ], parameters: { layout: 'fullscreen', }, } as ComponentMeta; const Template: ComponentStory = (args) => ( ); /** * Layout Stories - Default */ export const LayoutBase = Template.bind({});