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

Custom output direction #329

Open
gustavoalvim41 opened this issue Nov 18, 2023 · 1 comment
Open

Custom output direction #329

gustavoalvim41 opened this issue Nov 18, 2023 · 1 comment

Comments

@gustavoalvim41
Copy link

gustavoalvim41 commented Nov 18, 2023

I would like to know if there is a way to customize the exit direction of Toaster, making them move to the right instead of the default upward direction.

<Toaster
  position="top-right"
  reverseOrder={false}
  containerStyle={{
    top: "11.2rem",
    position: "absolute"
  }}
  toastOptions={{
    style: {
      borderRadius: "0",
      boxShadow: "rgba(99, 99, 99, 0.2) 0 .2rem .8rem 0"
    },
  }}
/>
@sameer920
Copy link

I was just looking at the code and the issues and I think this can be achieved by modifying the exit animation. However, I still don't understand how you would want change the exit direction, maybe through props?

If the maintainers allow me, I will be willing to work on this as it seems like a cool feature to have when I use this library in future as well.

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

2 participants