API reference: @salmonui/notifications/toast
ToasterPropsinterface
import type { ToasterProps } from '@salmonui/notifications/toast';interface ToasterProps extends Omit<HTMLAttributes<HTMLElement>, 'children' | 'popover'> {
queue?: ToastQueue | undefined;
placement?: ToastPlacement | undefined;
newestOnTop?: boolean | undefined;
max?: number | undefined;
container?: Element | null | undefined;
hotkey?: boolean | undefined;
localeText?: Partial<ToasterLocaleText> | undefined;
children?: ReactNode;
ref?: Ref<HTMLElement> | undefined;
}
| Name | Signature | Description |
|---|---|---|
queueoptional | queue?: ToastQueue | undefined; | The queue to render. Default: a queue the |
placementoptional | placement?: ToastPlacement | undefined; | Region position. Default |
newestOnTopoptional | newestOnTop?: boolean | undefined; | Newest toast first in the stack. Default |
maxoptional | max?: number | undefined; | Visible toasts; the rest wait in the queue. Default 5. |
containeroptional | container?: Element | null | undefined; | Renders the region inside this element (scoped, absolutely positioned;
give it |
hotkeyoptional | hotkey?: boolean | undefined; | F6 moves focus into the region and back. Default |
localeTextoptional | localeText?: Partial<ToasterLocaleText> | undefined; | Overrides of the built-in strings. |
childrenoptional | children?: ReactNode; | Content that can call |
refoptional | ref?: Ref<HTMLElement> | undefined; | The region element. |