// 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 { RadioGroup as RadioGroupController, type RadioGroupOptions } from '@42/core/choice';
import { C42 } from '../C42';
const DEFAULT_HTML: string | null = "
A
\n B
";
export interface RadioGroupProps extends Partial {
/** Element/tag rendered as the controller root. Defaults to `"div"`. */
as?: ElementType;
className?: string;
children?: ReactNode;
/** Fired on `radio:change` — detail: `{ value: string | null }` */
onChange?: (detail: { value: string | null }, event: CustomEvent) => void;
/** Extra props are forwarded to the rendered `` element. */
[key: string]: unknown;
}
export function RadioGroup(props: RadioGroupProps) {
const { as, className, children, onChange, checked, indeterminate, disabled, ...rest } = props;
const options = { checked, indeterminate, disabled } as RadioGroupOptions;
return (
{children as ReactNode}
);
}