mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 16:38:20 +01:00
18 lines
464 B
Vue
18 lines
464 B
Vue
<template>
|
|
<button v-bind="$props"
|
|
:class="['rounded text-gray-300 hover:bg-dark-900/70 p-2 flex items-center justify-center duration-200', toggled && 'bg-pink-500/70 hover:bg-pink-900/70']">
|
|
<slot />
|
|
</button>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import type { ButtonHTMLAttributes } from "vue";
|
|
|
|
interface Props extends /* @vue-ignore */ ButtonHTMLAttributes {}
|
|
|
|
defineProps<
|
|
Props & {
|
|
toggled?: boolean;
|
|
}
|
|
>();
|
|
</script> |