feat: add props for button styling

This commit is contained in:
Sebin Nyshkim 2023-04-02 17:07:13 +02:00
parent dd70061798
commit e67a220223

View file

@ -1,5 +1,7 @@
<script setup lang="ts">
interface Props {
positive?: boolean;
negative?: boolean;
href?: string;
download?: boolean | any;
}
@ -8,7 +10,12 @@ defineProps<Props>();
</script>
<template>
<a class="btn" :href="href" :[download]="download">
<a
class="btn"
:class="{ positive: positive, negative: negative }"
:href="href"
:[download]="download"
>
<slot></slot>
</a>
</template>