import type { Meta, StoryObj } from 'storybook-solidjs-vite'; import { fn } from 'storybook/test'; import { Switch, type SwitchProps } from './switch'; import { componentDescription } from '../stories/docs/element-controls'; const meta = { title: 'Solid (Advanced)/Primitives/Switch', component: Switch, tags: ['autodocs'], parameters: { layout: 'padded', docs: { description: componentDescription([ 'A toggle **switch** (`role="switch"`) for an immediate on/off setting, built on a native `