Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for Feature: More Granular Toast Positioning #24

Open
YugoCode opened this issue Feb 12, 2023 · 0 comments
Open

Request for Feature: More Granular Toast Positioning #24

YugoCode opened this issue Feb 12, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@YugoCode
Copy link

YugoCode commented Feb 12, 2023

First of all, thank you very much for this great component! :)

Currently, the svelte-french-toast library positions toasts with a default "fixed" positioning, which centers them relative to the entire screen. However, in some cases, it might be desirable to center the toasts relative to a specific section of the page, such as a content area in a two-column layout (sidebar - content).

Is this already somehow possible?

If not, here are two ideas for implementing it:

  1. Allow users to set the positioning of the toasts to either "fixed" or "absolute". This would give users the ability to control the centering of the toasts by placing the toaster in a specific place.

<Toaster position="absolute" />

  1. Allow users to specify an offset, such as "offset-left: 250px". This would give users the ability to fine-tune the positioning of the toasts to their liking.

<Toaster offsetLeft="250px"/>

@kbrgl kbrgl added the enhancement New feature or request label Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants