Toast
Temporary non-blocking notification.
Generado a partir del código fuente público del paquete.
API
Closecomponente
@solidiom/toast — Headless toast notification primitive. Parts: Region, Root, Title, Description, Close. API: createToaster() for programmatic queue control.
Close(props: ToastCloseProps): Element
Propiedades
class?stringtoastId?string— Toast id to dismiss. If omitted, reads from nearest Root's data-toast-id.
hijos: Element
createToasterfunción
@solidiom/toast — Headless toast notification primitive. Parts: Region, Root, Title, Description, Close. API: createToaster() for programmatic queue control.
createToaster(options: ToasterOptions): ToasterApi
Descriptioncomponente
@solidiom/toast — Headless toast notification primitive. Parts: Region, Root, Title, Description, Close. API: createToaster() for programmatic queue control.
Description(props: ToastDescriptionProps): Element
Propiedades
class?string
hijos: Element
Regioncomponente
@solidiom/toast — Headless toast notification primitive. Parts: Region, Root, Title, Description, Close. API: createToaster() for programmatic queue control.
Region(props: ToastRegionProps): Element
Propiedades
label?string— Custom aria-label. Default: "Notifications".toasterToasterApi— Toaster API from createToaster().
hijos: Element | (toasts: () => ToastEntry[]) => Element
Rootcomponente
@solidiom/toast — Headless toast notification primitive. Parts: Region, Root, Title, Description, Close. API: createToaster() for programmatic queue control.
Root(props: ToastRootProps): Element
Propiedades
class?stringstyle?string | CSSPropertiestoastIdstring— Toast entry id for dismissal.
hijos: Element
Titlecomponente
@solidiom/toast — Headless toast notification primitive. Parts: Region, Root, Title, Description, Close. API: createToaster() for programmatic queue control.
Title(props: ToastTitleProps): Element
Propiedades
class?string
hijos: Element
ToastClosePropsinterfaz
@solidiom/toast — Headless toast notification primitive. Parts: Region, Root, Title, Description, Close. API: createToaster() for programmatic queue control.
Propiedades
class?stringtoastId?string— Toast id to dismiss. If omitted, reads from nearest Root's data-toast-id.
hijos: Element
ToastContextValueinterfaz
Propiedades
dismiss(id: string) => void— Dismiss a toast by id.pause() => void— Pause all auto-dismiss timers (hover).pausedAccessor<boolean>— Whether timers are paused.resume() => void— Resume all auto-dismiss timers.toastsAccessor<ToastEntry[]>— Currently visible toasts (FIFO, capped by max).
ToastDescriptionPropsinterfaz
@solidiom/toast — Headless toast notification primitive. Parts: Region, Root, Title, Description, Close. API: createToaster() for programmatic queue control.
Propiedades
class?string
hijos: Element
ToastEntryinterfaz
Propiedades
description?string— Optional description body.durationnumber— Auto-dismiss duration in ms. 0 disables auto-dismiss.idstring— Unique identifier.onDismiss?() => void— Called when the toast is dismissed.titlestring— Toast title text.
ToasterApiinterfaz
@solidiom/toast — Headless toast notification primitive. Parts: Region, Root, Title, Description, Close. API: createToaster() for programmatic queue control.
Propiedades
dismiss(id: string) => void— Dismiss a toast by id.toast(entry: Omit<ToastEntry, "id" | "duration"> & { … }) => string— Add a toast to the queue. Returns the toast id.toasts() => ToastEntry[]— Reactive accessor to the current toast list.
ToasterOptionsinterfaz
@solidiom/toast — Headless toast notification primitive. Parts: Region, Root, Title, Description, Close. API: createToaster() for programmatic queue control.
Propiedades
defaultDuration?number— Default duration in ms. Default: 5000.max?number— Maximum visible toasts. Default: 3.
ToastRegionPropsinterfaz
@solidiom/toast — Headless toast notification primitive. Parts: Region, Root, Title, Description, Close. API: createToaster() for programmatic queue control.
Propiedades
label?string— Custom aria-label. Default: "Notifications".toasterToasterApi— Toaster API from createToaster().
hijos: Element | (toasts: () => ToastEntry[]) => Element
ToastRootPropsinterfaz
@solidiom/toast — Headless toast notification primitive. Parts: Region, Root, Title, Description, Close. API: createToaster() for programmatic queue control.
Propiedades
class?stringstyle?string | CSSPropertiestoastIdstring— Toast entry id for dismissal.
hijos: Element
ToastTitlePropsinterfaz
@solidiom/toast — Headless toast notification primitive. Parts: Region, Root, Title, Description, Close. API: createToaster() for programmatic queue control.
Propiedades
class?string
hijos: Element