Skip to content

Shows transient notification messages (includes the co-located BbToastPortal export).

import { BbToast } from 'bitboss-ui';

On this page

Props

NameTypeDefaultDescription
positionBbToastPosition | undefined-

The default corner for messages that do not name one. Resolution runs per message first (toast({ position })), then this prop, then the plugin’s toastPosition — which is bottom-right. Replaces v2 placement, whose values do not carry over: bottom is now bottom-center, bottom-start is bottom-left, bottom-end is bottom-right.

See example
ptPtMap<BbToastPtPart, never> | undefined-

Passthrough, object form: the same keys as the pt:* attributes without the prefix. See the pt:<part> row.

pt:closePtValue | undefined-
pt:panelPtValue | undefined-
pt:rootPtValue | undefined-
pt:textPtValue | undefined-
pt:titlePtValue | undefined-

Changes from v2

Props removed or renamed in 3.0. If you are coming from v2, the answer is here.

  • placementpositionfails silently
  • themevariantfails silently