import { ElementType, ReactNode } from 'react'; import { SwitchOptions } from '@42/core/choice'; export interface SwitchProps extends Partial { /** Element/tag rendered as the controller root. Defaults to `"button"`. */ as?: ElementType; className?: string; children?: ReactNode; /** Fired on `switch:change` — detail: `{ checked }` */ onChange?: (detail: unknown, event: CustomEvent) => void; /** Extra props are forwarded to the rendered `