import React from 'react'; export interface RadioGroupProps { /** * The content of the component. */ children?: React.ReactNode; /** * The default value. Use when the component is not controlled. */ defaultValue?: any; /** * The name used to reference the value of the control. * If you don't provide this prop, it falls back to a randomly generated name. */ name: string; label?: string; /** * Callback fired when a radio button is selected. */ onChange?: (value: string) => void; /** * Value of the selected radio button. The DOM API casts this to a string. */ value?: any; } export interface RadioGroupContextValue { onChange: (value: string) => void; name: string | undefined; value: any; defaultValue: any; } export interface RadioGroupState extends RadioGroupContextValue { }