import React from 'react'; import { CommonProps } from '../Element/Element'; declare type RadioButtonProps = { /** Value of the radiobutton */ value?: string | number; /** Whether the radiobutton is selected or not */ checked?: boolean; /** On change handler */ onChange?: (event: React.ChangeEvent | React.KeyboardEvent, checked: boolean) => void; /** Label for the radio button */ label?: React.ReactNode; /** Description for the radio button */ description?: string; /** Name of the radio button */ name?: string; /** Make element readable and focusable, but not editable. Value is still submitted with a form. */ readOnly?: boolean; /** Make element not mutable, focusable, or submitted with the form. */ disabled?: boolean; /** Custom classname */ className?: string; /** Center the radio button horizontally */ centeredHorizontally?: boolean; /** Radiobutton has an error, use it with description prop to give a descriptive message for th error */ error?: boolean; } & Omit, 'onChange'>; declare const RadioButton: React.FunctionComponent; export default RadioButton;