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
Description
It will nice if we can add as a property of the hook the duration in milliseconds or
falsevalue to auto-close the toast.in which:
autoCloseindicates the milliseconds that the toast will open whenonOpenfunction invokedautoCloseisfalse, this indicates that we need to invokeonCloseto close the modal