import type { ReactNode, RefAttributes } from "react"; import type { Validation } from "../../types"; import type { DOMProps } from "../../types/dom"; import type { HTMLElementEvent } from "../../types/events"; export type RadioGroupElementType = HTMLDivElement; export interface RadioGroupProps extends DOMProps, Validation, RefAttributes { children: ReactNode; className?: string; orientation?: "horizontal" | "vertical"; errorMessage?: string; onChange?: (event: HTMLElementEvent) => void; /** * Automatically change orientation from horizontal to vertical when any Radio label overflows. * Only applies when orientation is set to "horizontal". */ autoStack?: boolean; "aria-label"?: string; "aria-labelledby"?: string; "aria-errormessage"?: string; "aria-describedby"?: string; isRequired?: boolean; isDisabled?: boolean; isReadOnly?: boolean; defaultValue?: string; label?: ReactNode; /** * The value of the radio button, used when submitting an HTML form. * See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/radio#Value). */ value?: string; name?: string; } declare function RadioGroup({ ref, ...props }: RadioGroupProps): import("react/jsx-runtime").JSX.Element; declare namespace RadioGroup { var displayName: string; } export { RadioGroup };