import React from "react"; import type { Meta, StoryObj } from "@storybook/react"; import { BackLink, Button, Checkboxes, CheckboxItem, DateInput, ErrorSummary, ErrorSummaryMessage, Header, Hint, Input, Label, Typography, Container, Grid, Legend, MainWrapper, } from "../../.."; const meta: Meta = { title: "ErrorSummary", component: ErrorSummary, }; export default meta; type Story = StoryObj; const primary: Story = { name: "default", render: (_args) => ( The date your passport was issued must be in the past Enter a postcode, like AA1 1AA ), }; const linking: Story = { name: "linking", render: (_args) => ( <> Enter your full name Your details ), }; const linkingDateInput: Story = { name: "linking date input", render: (_args) => ( <> Passport issue date must include a year When was your passport issued? ), }; const checkboxes: Story = { name: "checkboxes", render: (_args) => ( <> Select if you are British, Irish or a citizen of a different country What is your nationality? If you have dual nationality, select all options that are relevant to you. including English, Scottish, Welsh and Northern Irish ), }; const fullPageExample: Story = { name: "checkboxes", render: (_args) => (
Passport issue date must include a year When was your passport issued?
), }; export { primary, linking, linkingDateInput, checkboxes, fullPageExample };