2024-05-12 06:34:03 +02:00
|
|
|
<template>
|
|
|
|
|
<button v-bind="$props"
|
2024-11-30 00:58:04 +01:00
|
|
|
:class="['rounded text-gray-300 hover:bg-dark-900/70 p-2 flex items-center justify-center duration-200', toggled && 'bg-primary2-500/70 hover:bg-primary2-900/70']">
|
2024-05-12 06:34:03 +02:00
|
|
|
<slot />
|
|
|
|
|
</button>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import type { ButtonHTMLAttributes } from "vue";
|
|
|
|
|
|
2024-05-12 06:46:37 +02:00
|
|
|
interface Props extends /* @vue-ignore */ ButtonHTMLAttributes {}
|
2024-05-12 06:34:03 +02:00
|
|
|
|
|
|
|
|
defineProps<
|
|
|
|
|
Props & {
|
|
|
|
|
toggled?: boolean;
|
|
|
|
|
}
|
|
|
|
|
>();
|
|
|
|
|
</script>
|