@openhands/ui
Version:
OpenHands UI Components
9 lines (8 loc) • 509 B
TypeScript
import { BaseProps, HTMLProps, IOption } from '../../shared/types';
export type RadioGroupProps<T extends string> = Omit<HTMLProps<"input">, "value" | "onChange"> & {
options: IOption<T>[];
value: T;
onChange: (option: IOption<T>) => void;
labelClassName?: string;
} & BaseProps;
export declare const RadioGroup: <T extends string>({ value, options, onChange, className, labelClassName, disabled, id: propId, testId, ...props }: RadioGroupProps<T>) => import("react/jsx-runtime").JSX.Element;