import type { ForwardRefExoticComponent, ReactNode, RefAttributes } from "react"; import { RadioGroupItem } from "./RadioGroupItem"; export interface RadioGroupProps { /** * The id of the `RadioGroup`. */ id?: string; /** * The class name of the `RadioGroup`. */ className?: string; /** * The name of the `RadioGroup`. */ name?: string; /** * The value of the `RadioGroup`. */ value: T; /** * Whether the `RadioGroup` is disabled. */ disabled?: boolean; /** * Whether the `RadioGroup` is required. */ required?: boolean; /** * The text position of the `RadioGroupItem`. * @default left */ textPosition?: "left" | "right"; /** * Event handler for when the `RadioGroup`'s value changes. */ onChange: (newValue: T) => void; /** * The children of the `RadioGroup`. */ children?: ReactNode; } export type RadioGroupComponent = ForwardRefExoticComponent & RefAttributes> & { Item: typeof RadioGroupItem; }; /** * The `RadioGroup` component presents mutually exclusive options, allowing users to make a single selection from a list. * * See the [Radio Group documentation page](https://satellite.algolia.com/8261d6576/p/50ec00-radio-buttongroup) for more information. */ export declare const RadioGroup: RadioGroupComponent;