-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Toast behaviorRelated with the implementation of toast behaviorRelated with the implementation of toast behaviorV0.1 releaseWill be included in V0.1 releaseWill be included in V0.1 releaseenhancementNew feature or requestNew feature or requesthacktoberfeston hold
Description
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 whenonOpen
function invoked- To default
autoClose
isfalse
, this indicates that we need to invokeonClose
to close the modal
Metadata
Metadata
Assignees
Labels
Toast behaviorRelated with the implementation of toast behaviorRelated with the implementation of toast behaviorV0.1 releaseWill be included in V0.1 releaseWill be included in V0.1 releaseenhancementNew feature or requestNew feature or requesthacktoberfeston hold