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

Auto-Close feature #8

Open
nsantos16 opened this issue Aug 12, 2020 · 0 comments
Open

Auto-Close feature #8

nsantos16 opened this issue Aug 12, 2020 · 0 comments
Labels
enhancement New feature or request hacktoberfest on hold Toast behavior Related with the implementation of toast behavior V0.1 release Will be included in V0.1 release

Comments

@nsantos16
Copy link
Contributor

nsantos16 commented Aug 12, 2020

Description

It will nice if we can add as a property of the hook the duration in milliseconds or false value to auto-close the toast.


const { onOpen } = useToast(<CustomToast />, { autoClose: 500 });

in which:

  • autoClose indicates the milliseconds that the toast will open when onOpen function invoked
  • To default autoClose is false, this indicates that we need to invoke onClose to close the modal

@nsantos16 nsantos16 added documentation Improvements or additions to documentation enhancement New feature or request V0.1 release Will be included in V0.1 release on hold Toast behavior Related with the implementation of toast behavior and removed documentation Improvements or additions to documentation labels Aug 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest on hold Toast behavior Related with the implementation of toast behavior V0.1 release Will be included in V0.1 release
Projects
None yet
Development

No branches or pull requests

1 participant