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

15 lines
193 B
Vue
Raw Permalink Normal View History

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