Nuxt/examples/config-extends/ui/components/Button.vue

15 lines
193 B
Vue

<script setup>
defineProps({
color: {
type: String,
default: 'black'
}
})
</script>
<template>
<button class="ui-button" :style="{ color }">
<slot />
</button>
</template>