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

[FEATURE] Add possibility to center toast vertically #200

Open
mateki0 opened this issue Feb 11, 2025 · 0 comments
Open

[FEATURE] Add possibility to center toast vertically #200

mateki0 opened this issue Feb 11, 2025 · 0 comments

Comments

@mateki0
Copy link

mateki0 commented Feb 11, 2025

Is your feature request related to a problem? Please describe.
Currently, it is impossible to center toast vertically without explicitly specifying toast height.

Describe the solution you'd like
I would like to have extended position props with value "center" or "center-vertically" which will set the proper style to the Positioner component

Describe alternatives you've considered
I was thinking about exposing toast height, but it's not a good solution because height is known when it's rendered, and it's being positioned after which looks like a bug.

Additional context
I can make a PR with it if you accept this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant