import type { Meta, StoryObj } from "@storybook/react"; import React from "react"; import { Typography, Legend, Checkboxes, CheckboxItem, DateInput, Hint, Input, Label, ErrorMessage, } from "../../.."; const meta: Meta = { title: "Error message", component: ErrorMessage, }; export default meta; type Story = StoryObj; const primary: Story = { name: "default", render: (_args) => ( When was your passport issued? For example, 27 3 2007 ), }; const error: Story = { name: "default", render: (_args) => Rhowch eich enw llawn, }; const legend: Story = { name: "default", render: (_args) => ( What is your nationality? If you have dual nationality, select all options that are relevant to you. ), }; const label: Story = { name: "default", render: (_args) => ( It’s on your National Insurance card, benefit letter, payslip or P60. For example, ‘QQ 12 34 56 C’. ), }; export { primary, error, legend, label };