RadioButton API
API documentation for RadioButton component
RadioButtonRoot#
Props#
Defines valid properties in RadioButton component.
State#
Defines valid state in RadioButton component.
Exposes#
Defines the methods and properties exposed by RadioButton component.
Events#
RadioButtonRootChangeEvent
Event fired when the radio button's checked state changes.
| name | type | description |
|---|---|---|
| value | unknown | Value of the radio button. |
| originalEvent | ChangeEvent | The original event that triggered the change. |
| checked | boolean | The checked state of the radio button. |
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of RadioButton component.
Types#
Instance
Instance of RadioButton component.
| values |
|---|
| ComponentInstance<RadioButtonRootProps, RadioButtonRootState, RadioButtonRootExposes> |
RadioButtonGroup#
Props#
Defines valid properties in RadioButtonGroup component.
State#
Defines valid state in RadioButtonGroup component.
Exposes#
Defines the methods and properties exposed by RadioButtonGroup component.
Events#
RadioButtonGroupChangeEvent
Event fired when the radio button's checked state changes.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of RadioButtonGroup component.
| name | type | default | description |
|---|---|---|---|
| root | RadioButtonGroupPassThroughType<HTMLAttributes<HTMLDivElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of RadioButtonGroup component.
| values |
|---|
| ComponentInstance<RadioButtonGroupProps, RadioButtonGroupState, RadioButtonGroupExposes> |
useRadioButton#
Props#
Defines valid properties in useRadioButton.
State#
Defines valid state in useRadioButton.
Exposes#
Defines the methods and properties exposed by useRadioButton.
Events#
useRadioButtonChangeEvent
Event fired when the radio button's checked state changes.
| name | type | description |
|---|---|---|
| originalEvent | E | The original event that triggered the change. |
| checked | boolean | The checked state of the radio button. |
Types#
Instance
Instance of useRadioButton headless.
| values |
|---|
| HeadlessInstance<useRadioButtonProps, useRadioButtonState, useRadioButtonExposes> |