Radio API
API reference docs for the Stash Radio
component. Learn about the props, CSS, and other APIs of this exported module.
Import
ts
import Radio from '@leaflink/stash/Radio.vue';
Props
Name | Type | Default | Description |
---|---|---|---|
id | string | '-' | A unique string to distinguish one Radio instance from another and to link the label to the input; required for accessibility |
checked | string|number | undefined | The checked/selected state of the radio button |
hasError | boolean | - | Adds error styling |
label | string | '' | The description which appears to the right of the radio button |
modelValue | string|number|null | null | Use :checked or v-model:checked instead of :model-value and v-model. |
Slots
None
Events
Name | Description |
---|---|
update:checked |