Browse Source

update button component

dev
Philipp Lang 2 years ago
parent
commit
51a5578bc4
  1. 16
      assets/js/components/VBtn.vue

16
assets/js/components/VBtn.vue

@ -1,15 +1,19 @@
<template> <template>
<button :type="type" class="bg-primary px-6 py-3 leading-none rounded text-lg font-semibold text-white disabled:bg-gray-300">
<button
:type="type"
class="bg-primary px-6 py-3 leading-none rounded text-lg font-semibold text-white disabled:bg-gray-300"
@click.prevent="$emit('click', $event)"
>
<slot></slot> <slot></slot>
</button> </button>
</template> </template>
<script>
export default {
props: {
<script setup>
defineEmits(['click']);
defineProps({
type: { type: {
default: 'button', default: 'button',
}, },
},
};
});
</script> </script>

Loading…
Cancel
Save