-
-
Notifications
You must be signed in to change notification settings - Fork 191
Open
Description
<script setup>
const props = defineProps({
foo: {
type: String,
required: true,
default: 'default',
validator: (value) => {
if(typeof value !== 'string') return false
return ['primary', 'ghost', 'dashed', 'link', 'text', 'default'].includes(value)
}
},
})
</script>
<template>
<button>{{foo}}</button>
</template>
munkeywolf00