Radio API
Radio
API#
Name | Required | Type | Default Value | Description |
---|
useRadioState
API#
Name | Required | Type | Default Value | Description |
---|
useRadioState
Return#
Name | Type | Description |
---|---|---|
state | string | boolean | The state object of the radio. This can be a boolean or an array of items. |
setState | React.Dispatch<React.SetStateAction<typeof state>> | The React dispatch function from useState or a reference to this.setState |
onChange | React.ChangeEventHandler<HTMLInputElement> | The change handler to be called by the input control when a change event fires. This calls setState for you |