mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-24 06:28:34 +01:00
* feat: sort themes and remove daisyui * docs: update docs to reflect daisyui being removed * feat: remove specific colours for better theme compatibility
25 lines
732 B
Vue
25 lines
732 B
Vue
<script lang="ts" setup>
|
|
import { Toaster as Sonner, type ToasterProps } from 'vue-sonner'
|
|
|
|
const props = defineProps<ToasterProps>()
|
|
</script>
|
|
|
|
<template>
|
|
<Sonner
|
|
class="toaster group"
|
|
v-bind="props"
|
|
rich-colors
|
|
visible-toasts="10"
|
|
:toast-options="{
|
|
classes: {
|
|
toast: 'group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg',
|
|
description: 'group-[.toast]:text-muted-foreground',
|
|
actionButton:
|
|
'group-[.toast]:bg-primary group-[.toast]:text-primary-foreground',
|
|
cancelButton:
|
|
'group-[.toast]:bg-muted group-[.toast]:text-muted-foreground',
|
|
},
|
|
}"
|
|
/>
|
|
</template>
|