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