Skip to content

Auto-Close feature #8

@nsantos16

Description

@nsantos16

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions