Skip to content

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

NameTypeDefaultDescription
idstring '-' A unique string to distinguish one Radio instance from another and to link the label to the input; required for accessibility
checkedstring|numberundefinedThe checked/selected state of the radio button
hasErrorboolean-Adds error styling
labelstring '' The description which appears to the right of the radio button
modelValuestring|number|nullnullUse :checked or v-model:checked instead of :model-value and v-model.

Slots

None

Events

NameDescription
update:checked