Files
better-auth/examples/nuxt-example/components/ui/toast/ToastViewport.vue
Bereket Engida 9f2e45b8c7 chore: cleanup
2025-01-06 14:30:39 +03:00

19 lines
566 B
Vue

<script setup lang="ts">
import { type HTMLAttributes, computed } from "vue";
import { type ToastViewportProps } from "radix-vue";
const props = defineProps<
ToastViewportProps & { class?: HTMLAttributes["class"] }
>();
const delegatedProps = computed(() => {
const { class: _, ...delegated } = props;
return delegated;
});
</script>
<template>
<ToastViewport v-bind="delegatedProps" :class="cn('fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]', props.class)" />
</template>