View as Markdown

API reference

@salmonui/notifications/toast

16 exported symbols: 3 functions, 10 interfaces and 3 types. Each name links its page with the signature, docs and members.

import { … } from '@salmonui/notifications/toast';

Functions

  • ToasterToaster. Styling hooks: .salmon-toaster (data-placement, data-paused, data-scoped), its .salmon-toaster-list; .salmon-toast (data-tone, data-closing) with part…
  • createToastQueueCreates a toast queue. Call it in a client module or in an effect, never at render time.
  • useToastThe queue of the nearest Toaster. Throws outside a Toaster.

Interfaces

Types