interface QSnackbarProps extends Omit<HTMLAttributes<HTMLDivElement>, "children">
action?: QSnackbarAction = undefined
actionOnNewLine?: boolean = falsedismissLabel?: string = "Dismiss"dismissible?: boolean = falsemessage?: string = undefinedoffset?: number | string = 12onDismiss?: (reason: QSnackbarDismissReason) => void = undefined
onHidden?: () => void = undefinedtimeout?: number = 6000value?: boolean = $bindable(false)
message for plain text, add an action for a related choice, or
use children for custom content. actionOnNewLine places the action below
the message. These small bookshop examples share one snackbar so messages never overlap. A new
message waits for the previous exit transition.timeout values
are limited to 4000–10000 milliseconds; use 0 to keep it open. An action or dismissible close button prevents automatic dismissal. These
controls apply to the shared snackbar above.offset accepts pixels or a CSS length. This example starts above the layout's
bottom navigation. onDismiss reports action, dismiss, programmatic or timeout when dismissal
begins. onHidden runs after the exit transition. Bind value or call show(), hide() and toggle() on the instance.
Messages use a polite live region and do not move focus automatically. Keep the outcome
visible in the page as well. Tab reaches snackbar actions; Escape closes the snackbar when
focus is inside it. Give the close button a useful dismissLabel.
Use QSnackbar for feedback owned by a component. For app-wide notifications that should appear one after another, use the Notify API.