Radio menu

Props

PropTypeDefault/Notes
@inputFunc()Handle event emitted from the component, ex: @input={funcName}
itemsArray<Object>Format: [{ label: String, value: String | Number}] Pass an array of objects containing the option name and value that gets returned
valueString/NumberDefault: undefined
disabledBooleanDefault: 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: // Value of selected radio key
	    }),
		components: {
			Radio
		}
	}
</script>