import React from 'react'; export interface RadioProps { /** * Value of the selected radio input */ value: string; /** * Name to group radio inputs */ name: string; /** * Represents a label for an item in a user interface */ label: string; /** * Event to fire when an alteration to the element's value is committed by the user */ onChange?: (event: React.ChangeEvent) => void; /** * Function that fires when an item is clicked. Does NOT apply to keyboard/assisted tech selection */ onClick?: (value: any) => void; /** * Unique id of radio input */ id?: string; /** * A Boolean attribute which, if present, indicates that the user should not be able to interact with the input */ isDisabled?: boolean; /** * A Boolean attribute which, if present, indicates that this radio button is checked */ isChecked?: boolean; /** * A Boolean attribute which, if present, indicates that this radio button has an error */ hasError?: boolean; /** * A Boolean attribute which, if present, indicates that user input is required on the element before a form may be submitted */ required?: boolean; /** * A string to be presented in a badge after the label */ badgeText?: string; } export default function Radio({ id, value, label, badgeText, name, isDisabled, isChecked, hasError, onChange, onClick, required, }: RadioProps): JSX.Element;