Radio Button API
Properties
| Name | Type | Default | Description |
|---|---|---|---|
label | string | — | Visible label text next to the radio button. |
data-id | string | — | The id applied to the internal input element. |
name | string | — | Groups multiple radio buttons together and is used when submitting a form. |
value | string | — | Value of the input. |
type | "error" | "success" | "warning" | "info" | — | Applies a semantic style to the radio button. |
checked | boolean | — | Whether the radio button is checked. |
disabled | boolean | — | Makes the radio button non-interactive. |
Events
| Event | Description | Returns | |
|---|---|---|---|
change | Fires whenever the checked state changes via click or keyboard. | Change event | |
click | Fires when the input or label is clicked. | Click event | |