Position

The optional position option allows you to set the position of the Promo widget.

bl — Positioned at the bottom left corner

br — Positioned at the bottom right corner

tl — Positioned at the top left corner

tr — Positioned at the top right corner

It also allows to specify a fixed position be providing an object with a number value for the bottom, left, right and/or top offset to its respective viewport edge.

const alertConfig: Partial<AlertConfig> = {
  position: {
    bottom: 100,
    right: 100,
  },
};

Last updated