import React from "react"; import type { Meta, StoryObj } from "@storybook/react"; import { Radios, RadioItem, Label, Hint, Legend, Input } from "../../.."; const meta: Meta = { title: "Radios", component: Radios, }; export default meta; type Story = StoryObj; const withHeading: Story = { name: "Where do you live", render: (_args) => ( Where do you live? ), }; const withoutHeading: Story = { name: "Where do you live without heading", render: (_args) => ( Where do you live? ), }; const inline: Story = { name: "Inline radios", render: (_args) => ( Have you changed your name? This includes changing your last name or spelling your name differently. ), }; const withHint: Story = { name: "Radio items with hint", render: (_args) => ( How do you want to sign in? You’ll need an account to prove your identity and complete your Self Assessment. You’ll have a user ID if you’ve registered for Self Assessment or filed a tax return online before. You’ll have an account if you’ve already proved your identity with either Barclays, CitizenSafe, Digidentity, Experian, Post Office, Royal Mail or SecureIdentity. ), }; const withDivider: Story = { name: "Radio items with divider", render: (_args) => ( Where do you live? or ), }; const conditional: Story = { name: "Radio items with conditional", render: (_args) => ( How would you prefer to be contacted? Select one option. } > ), }; const small: Story = { name: "Small radios", render: (_args) => ( Filter ), }; const errors: Story = { name: "Radios with error", render: (_args) => ( Where do you live? ), }; const conditionalWithErrors: Story = { name: "Radio items with conditional", render: (_args) => ( How would you prefer to be contacted? Select one option., } > ), }; export { withHeading, withoutHeading, inline, withHint, withDivider, conditional, small, errors, conditionalWithErrors, };