Skip to content

RadioNew API

API reference docs for the Stash RadioNew component. Learn about the props, CSS, and other APIs of this exported module.

Import

ts
import RadioNew from '@leaflink/stash/RadioNew.vue';

Props

NameTypeDefaultDescription
idstring | numberundefinedA unique string to distinguish one Radio instance from another and to link the label to the input; required for accessibility
valuestring '-' The value for the radio input.
disabledbooleanfalseWhether the entire group should be disabled
fullWidthbooleanfalseWhether the group should expand to the parent's width
hasErrorbooleanfalseAdds error styling
labelstring '' The description which appears to the right of the radio button
modelValuestring | undefinedundefinedvalue bound to the parent component
namestringundefinedPassed to the "name" attribute of the `<input>` element.
variantRadioVariantsundefinedthe styling for the radio button @defaultValue 'radio'

Slots

NameDescription
default

Events

NameDescription
update:modelValue