Props
Prop | Type | Default/Notes |
---|
@input | Func() | Handle event emitted from the component, ex: @input={funcName} |
items | Array<Object> | Format: [{ label: String, value: String | Number}] Pass an array of objects containing the option name and value that gets returned |
value | String/Number | Default: undefined |
disabled | Boolean | Default: false |
Example usage
<template>
<Radio
:items="[{ label: 'Item A', value: 'A' },{ label: 'Item B', value: 'B' }]"
v-model="radioModel"
/>
</template>
<script>
import { Radio } from 'figma-plugin-ds-vue'
export default {
data: () => ({
radioModel:
}),
components: {
Radio
}
}
</script>