diff --git a/src/runtime/components/Toaster.vue b/src/runtime/components/Toaster.vue index 7d0c9015..1a303b49 100644 --- a/src/runtime/components/Toaster.vue +++ b/src/runtime/components/Toaster.vue @@ -19,6 +19,10 @@ export interface ToasterProps extends Omit ui?: Partial } +export interface ToasterSlots { + default(): any +} + export type ToasterContext = ComputedRef<{ duration: number }> @@ -32,7 +36,11 @@ import { useToast } from '#imports' import { UToast } from '#components' import { omit } from '#ui/utils' -const props = withDefaults(defineProps(), { expand: true, duration: 5000 }) +const props = withDefaults(defineProps(), { + expand: true, + duration: 5000 +}) +defineSlots() const providerProps = useForwardProps(reactivePick(props, 'duration', 'label', 'swipeThreshold'))