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
Name | Type | Default | Description |
---|---|---|---|
id | string | number | undefined | A unique string to distinguish one Radio instance from another and to link the label to the input; required for accessibility |
value | string | '-' | The value for the radio input. |
disabled | boolean | false | Whether the entire group should be disabled |
fullWidth | boolean | false | Whether the group should expand to the parent's width |
hasError | boolean | false | Adds error styling |
label | string | '' | The description which appears to the right of the radio button |
modelValue | string | undefined | undefined | value bound to the parent component |
name | string | undefined | Passed to the "name" attribute of the `<input>` element. |
variant | RadioVariants | undefined | the styling for the radio button @defaultValue 'radio' |
Slots
Name | Description |
---|---|
default |
Events
Name | Description |
---|---|
update:modelValue |