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

Proposal: useToast position prop #374

Closed
1 of 2 tasks
hansfpc opened this issue Aug 23, 2020 · 1 comment
Closed
1 of 2 tasks

Proposal: useToast position prop #374

hansfpc opened this issue Aug 23, 2020 · 1 comment

Comments

@hansfpc
Copy link

hansfpc commented Aug 23, 2020

Feature request 🚀

  • I will create Pull Request
  • It's just a suggestion

Expected

  • useToast should accept "position" (or similar) prop for displaying it on top-left, top-right, bottom-right (default), bottom-left, top-center, bottom-center

I was reading useToast hook but cannot understand it at all, otherwise I would sent a PR

Examples

<div onClick={() => setToast({ text: 'You´ve clicked the image', type: 'success', position: 'top-left' })} >
                { /* ... */ }
 </div>

Programme (Optional)

Others (Optional)

@hansfpc
Copy link
Author

hansfpc commented Aug 23, 2020

duplicate of #315

@hansfpc hansfpc closed this as completed Aug 23, 2020
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