import type { Meta, StoryObj } from '@storybook/react-vite'; import argTypes from '../../../.storybook/sgdsArgTypes'; import FeatureHeader from './FeatureHeader'; import Button from '../Button'; // @ts-expect-error no types import photograph from '../../../static/images/highland-cow.jpg'; // @ts-expect-error no types import illustration from '../../../static/images/illustration.svg'; type foo = typeof FeatureHeader; const meta = { title: 'Components/FeatureHeader', component: FeatureHeader, argTypes: { backgroundColor: argTypes.select({options: ['none', 'secondary', 'tertiary', 'brand']}), children: argTypes.children(), hasCoverImage: argTypes.boolean(), hasNoImagePadding: argTypes.boolean(), id: argTypes.id({ type: { name: 'string', required: false } }), isFullWidth: argTypes.boolean(), isWideText: argTypes.boolean(), isTopAlignImage: argTypes.boolean(), tagName: argTypes.select({ options: ['div', 'header'] }) }, args: { backgroundColor: 'secondary' } } satisfies Meta; export default meta; type Story = StoryObj; export const Default: Story = { args: { children: <>

The Scottish Government Design System provides static web assets for websites and web applications for the Scottish Government and other Scottish public sector bodies.

The Design System is open source and free to use.

} }; export const WithoutContent: Story = { name: 'Without content', args: { children: <> } }; export const WithCallToAction: Story = { name: 'Call to action', args: { children: <>

The Scottish Government Design System provides static web assets for websites and web applications for the Scottish Government and other Scottish public sector bodies.

The Design System is open source and free to use.

} }; export const WithCoverImage: Story = { name: 'Cover image', args: { children: <>

The Scottish Government Design System provides static web assets for websites and web applications for the Scottish Government and other Scottish public sector bodies.

The Design System is open source and free to use.

, hasCoverImage: true } }; export const WithCoverImagePhotograph: Story = { name: 'Cover image (photograph)', args: { children: <>

The Scottish Government Design System provides static web assets for websites and web applications for the Scottish Government and other Scottish public sector bodies.

The Design System is open source and free to use.

, hasCoverImage: true } }; export const FullWidth: Story = { name: 'Full width', args: { children: <>

The Scottish Government Design System provides static web assets for websites and web applications for the Scottish Government and other Scottish public sector bodies.

The Design System is open source and free to use.

, isFullWidth: true } }; export const FullWidthImagePaddingRemoved: Story = { name: 'Full width with image padding removed', args: { children: <>

The Scottish Government Design System provides static web assets for websites and web applications for the Scottish Government and other Scottish public sector bodies.

The Design System is open source and free to use.

, hasNoImagePadding: true, isFullWidth: true } }; export const WideText: Story = { name: 'Wide text', args: { children: <>

The Scottish Government Design System provides static web assets for websites and web applications for the Scottish Government and other Scottish public sector bodies.

The Design System is open source and free to use.

, isWideText: true } }; export const TopAlign: Story = { name: 'Top aligned image', args: { children: <>

The Scottish Government Design System provides static web assets for websites and web applications for the Scottish Government and other Scottish public sector bodies.

The Design System is open source and free to use.

, isTopAlignImage: true } }; export const TopAlignPhotograph: Story = { name: 'Top aligned image (photograph)', args: { children: <>

The Scottish Government Design System provides static web assets for websites and web applications for the Scottish Government and other Scottish public sector bodies.

The Design System is open source and free to use.

, isTopAlignImage: true } };