Skip to content

Conversation

@philipp-tailor
Copy link
Contributor

What?

Extends the toast configuration introduced with #13609 to also allow to configure the toast's positioning.

Why?

Different users of Payload might prefer different positions. E.g. for our own implementation we'd prefer a top (central) position, because we've been having users overlook the toasts in the bottom right due to usage of large screens, and saving / publishing buttons usually triggering toasts being placed at the top (meaning the user looks at the top).

How?

The position configuration is a 1:1 pass-through of the https://sonner.emilkowal.ski position configuration option. The default remains unchanged compared to the status-quo, at 'bottom-right'.

Screenshots

bottom-right: Unchanged to current placement.

bottom-center:

image

bottom-left:

image

top-left - questionable, but IMHO that's fine because it's an opt-in choice.:

image

top-center:

image

top-left - also covers interactive UI, but is therefore very hard to overlook:

image

Extends the toast configuration introduced with payloadcms#13609 to also allow
to configure the toast's positioning. The `position` configuration
is a 1:1 pass-through of the https://sonner.emilkowal.ski `position`
configuration option. The default remains unchanged compared to the
status-quo, at `'bottom-right'`.
@philipp-tailor philipp-tailor force-pushed the make-toast-position-configurable branch from 5629760 to c13ffeb Compare October 29, 2025 19:20
Copy link
Member

@AlessioGr AlessioGr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@AlessioGr AlessioGr enabled auto-merge (squash) October 29, 2025 19:25
@AlessioGr AlessioGr merged commit d5fab43 into payloadcms:main Oct 29, 2025
178 of 182 checks passed
@github-actions
Copy link
Contributor

🚀 This is included in version v3.62.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants