mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-07 20:37:44 +00:00
21 lines
492 B
Vue
21 lines
492 B
Vue
<script setup lang="ts">
|
|
import { type HTMLAttributes, computed } from "vue";
|
|
import { type ToastTitleProps } from "radix-vue";
|
|
|
|
const props = defineProps<
|
|
ToastTitleProps & { class?: HTMLAttributes["class"] }
|
|
>();
|
|
|
|
const delegatedProps = computed(() => {
|
|
const { class: _, ...delegated } = props;
|
|
|
|
return delegated;
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<ToastTitle v-bind="delegatedProps" :class="cn('text-sm font-semibold [&+div]:text-xs', props.class)">
|
|
<slot />
|
|
</ToastTitle>
|
|
</template>
|