UNPKG

@clubmed/trident-ui

Version:

Shared ClubMed React UI components

18 lines (17 loc) 605 B
import { InputHTMLAttributes } from 'react'; export interface RadioProps<Value = string> extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> { /** * The data-testid to apply to the button. * This is used for testing purposes. * */ dataTestId?: string; /** * The diameter of the radio button. * */ size?: number; onChange?: (name: string, value: Value | null) => void; } export declare function Radio<Value = string>(props: RadioProps<Value>): import("react/jsx-runtime").JSX.Element; export declare namespace Radio { var displayName: string; }