// AUTO-GENERATED by scripts/generate-wrappers.mjs — do not edit by hand. // Source: packages/core/manifest.json (component "choice"). import type { ElementType, ReactNode } from 'react'; import { Switch as SwitchController, type SwitchOptions } from '@42/core/choice'; import { C42 } from '../C42'; const DEFAULT_HTML: string | null = "Notifications"; 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 `