library/frontend/components/PrimaryButton.vue

21 lines
526 B
Vue
Raw Normal View History

2023-05-23 10:48:57 -07:00
<script setup lang="ts">
defineProps<{type?: string}>()
</script>
2023-07-13 14:19:39 -07:00
<!--------------------------------------------------------------- TEMPLATE ---->
2023-05-23 10:48:57 -07:00
<template>
<button :type="type ?? 'button'"><slot /></button>
</template>
2023-07-13 14:19:39 -07:00
<!------------------------------------------------------------------ STYLE ---->
2023-05-23 10:48:57 -07:00
<style scoped lang="postcss">
button {
@apply px-5 py-1.5 rounded-xl;
@apply text-pink-500;
@apply border-pink-400 border-2;
@apply transition-colors duration-200 hover:bg-pink-400 hover:text-white;
}
</style>