Skip to main content

Radio API

Radio API#

Name RequiredTypeDefault ValueDescription

useRadioState API#

Name RequiredTypeDefault ValueDescription

useRadioState Return#

NameTypeDescription
statestring | booleanThe state object of the radio. This can be a boolean or an array of items.
setStateReact.Dispatch<React.SetStateAction<typeof state>>The React dispatch function from useState or a reference to this.setState
onChangeReact.ChangeEventHandler<HTMLInputElement>The change handler to be called by the input control when a change event fires. This calls setState for you