UNPKG

@nuxt/ui

Version:

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.

45 lines (44 loc) 1.54 kB
import type { ToastProviderProps } from 'reka-ui'; import type { AppConfig } from '@nuxt/schema'; import theme from '#build/ui/toaster'; import type { ComponentConfig } from '../types/utils'; type Toaster = ComponentConfig<typeof theme, AppConfig, 'toaster'>; export interface ToasterProps extends Omit<ToastProviderProps, 'swipeDirection'> { /** * The position on the screen to display the toasts. * @defaultValue 'bottom-right' */ position?: Toaster['variants']['position']; /** * Expand the toasts to show multiple toasts at once. * @defaultValue true */ expand?: boolean; /** * Whether to show the progress bar on all toasts. * @defaultValue true */ progress?: boolean; /** * Render the toaster in a portal. * @defaultValue true */ portal?: boolean | string | HTMLElement; class?: any; ui?: Toaster['slots']; } export interface ToasterSlots { default(props?: {}): any; } declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ToasterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToasterProps> & Readonly<{}>, { progress: boolean; duration: number; expand: boolean; portal: boolean | string | HTMLElement; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ToasterSlots>; export default _default; type __VLS_WithSlots<T, S> = T & { new (): { $slots: S; }; };