UNPKG

@ark-ui/vue

Version:

A collection of unstyled, accessible UI components for Vue, utilizing state machines for seamless interaction.

45 lines (44 loc) 1.73 kB
import { HTMLAttributes, SlotsType, VNodeChild, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue'; import { PolymorphicProps } from '../factory'; import { CreateToasterReturn } from './create-toaster'; import * as toast from '@zag-js/toast'; export type ToastOptions = toast.Options<VNodeChild>; export interface ToasterBaseProps extends PolymorphicProps { toaster: CreateToasterReturn; } export interface ToasterProps extends ToasterBaseProps, /** @vue-ignore */ HTMLAttributes, /** @vue-ignore */ SlotsType<{ default: ToastOptions; }> { } declare function __VLS_template(): { attrs: Partial<{}>; slots: { default?(_: { title?: VNodeChild; description?: VNodeChild; duration?: number | undefined; removeDelay?: number | undefined; id?: string | undefined; type?: toast.Type | undefined; onStatusChange?: ((details: toast.StatusChangeDetails) => void) | undefined; action?: toast.ActionOptions | undefined; closable?: boolean | undefined; meta?: Record<string, any> | undefined; }): any; }; refs: {}; rootEl: any; }; type __VLS_TemplateResult = ReturnType<typeof __VLS_template>; declare const __VLS_component: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>; declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>; export default _default; type __VLS_WithTemplateSlots<T, S> = T & { new (): { $slots: S; }; };