import { Meta, Title, Subtitle, Description, Primary, Controls, Stories, Canvas } from '@storybook/addon-docs/blocks';
import * as SwitchStories from './switch.stories';

<Meta of={SwitchStories} />

<Title />
<Subtitle>A control that allows users to toggle between on and off states.</Subtitle>

<Description />

<Primary />

---

## Variations

<Stories />

---

## AI Best Practices

> [!IMPORTANT]
> - **Immediate Action** — Use Switch for settings that take effect immediately without a "Save" button. For multi-option forms, consider `Checkbox`.
> - **Accessibility** — Always pair with a `Label` linked via `id` and `htmlFor`.
