UNPKG

@openhands/ui

Version:
9 lines (8 loc) 509 B
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;