import type { Meta, StoryObj } from "@storybook/react" import { Checkbox } from "../check-box" import { Input } from "../input" import { Switch } from "../switch" import { Label } from "./Label" /** * A Label component to provide accessible names for form controls. */ const meta = { title: "base/form/Label", component: Label, tags: ["autodocs"], parameters: { layout: "centered", }, } satisfies Meta export default meta type Story = StoryObj /** * Basic label with text content. */ export const Basic: Story = { render: () => , } /** * Label with custom styling. */ export const CustomStyling: Story = { render: () => (
), } /** * Label associated with an input field. */ export const WithInput: Story = { render: () => (
), } /** * Label used with a checkbox. */ export const WithCheckbox: Story = { render: () => (
), } /** * Label used with a switch. */ export const WithSwitch: Story = { render: () => (
), } /** * Required label with a visual indicator. */ export const Required: Story = { render: () => (
), } /** * Disabled label that shows it's not interactive. */ export const Disabled: Story = { render: () => (
), }