import React from "react"; import type { Meta, StoryObj } from "@storybook/react"; import { Legend, CheckboxItem, Hint, Input, Label, Checkboxes } from "../../.."; const meta: Meta = { title: "Checkboxes", component: Checkboxes, }; export default meta; type Story = StoryObj; const primary: Story = { name: "default", render: (_args) => ( Which types of waste do you transport? Select all that apply. ), }; const withoutHeading: Story = { name: "Without heading", render: (_args) => ( Which types of waste do you transport? Select all that apply. ), }; const itemsWithHints: Story = { name: "Items with hint text", render: (_args) => ( 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 noneOption: Story = { name: "None option", render: (_args) => ( Will you be travelling to any of these countries? Select all countries that apply or ), }; const noneOptionError: Story = { name: "None option with error", render: (_args) => ( Will you be travelling to any of these countries? Select all countries that apply or ), }; const conditional: Story = { name: "Conditional", render: (_args) => ( How would you like to be contacted? Select all options that are relevant to you. } > ), }; const small: Story = { name: "Conditional", render: (_args) => ( Organisation ), }; const error: Story = { name: "Items with hint text", render: (_args) => ( What is your nationality? If you have dual nationality, select all options that are relevant to you. including English, Scottish, Welsh and Northern Irish ), }; export { primary, withoutHeading, itemsWithHints, noneOption, noneOptionError, conditional, small, error, };