import type { Meta, StoryObj } from '@storybook/react-vite'; import argTypes from '../../../.storybook/sgdsArgTypes'; import PageHeader from './PageHeader'; import Metadata from '../PageMetadata'; const meta = { title: 'Components/PageHeader', component: PageHeader, argTypes: { children: argTypes.children(), heading: { description: 'Text (allowing HTML/JSX) to use for the H1 element', type: { name: 'string' } }, label: { description: 'Text to use for a label shown above the H1 element', type: 'string' }, title: { description: 'Text to use for the H1 element', type: { name: 'string' } } }, args: { label: 'Publication - Research and analysis', title: 'Cancer prehabilitation in Scotland: 2025 survey findings report' } } satisfies Meta; export default meta; type Story = StoryObj; export const Default: Story = { }; export const WithMetadata: Story = { args: { children: <> 3 September 2025 Director-General Health and Social Care Population Health Directorate 9781806431007 } };