import type { Meta, StoryObj } from '@storybook/react-vite'; import argTypes from '../../../.storybook/sgdsArgTypes'; import TaskList from './TaskList'; const meta = { title: 'Components/TaskList/TaskList.Group', component: TaskList.Group, decorators: [ Story => (
) ], argTypes: { title: { description: 'The title of the task list', type: { name: 'string', required: true } }, children: argTypes.children() }, args: { title: 'Tell us about your daily living and mobility circumstances' } } satisfies Meta; export default meta; type Story = StoryObj; export const Default: Story = { render: (args) => ( Questions about your ability to prepare a simple meal safely and any help you need to do this. Questions about your ability to eat and drink and any help you need to do this. Questions about any help you need to monitor changes in your health condition, take medication or do therapy at home. ) }; export const WithIntroduction: Story = { args: { intro: 'This information will be used to check what additional benefits you may be able to apply for.' }, render: (args) => ( Questions about your ability to prepare a simple meal safely and any help you need to do this. Questions about your ability to eat and drink and any help you need to do this. Questions about any help you need to monitor changes in your health condition, take medication or do therapy at home. ) };