Skip to main content

collapseToast

ParameterTypeRequiredDefaultDescription
nodeHTMLElement-The html node that reference the toast. Accessible via nodeRef.current
done() => void-Need to be called to remove the toast.
durationnumber | [number,number]300The duration of the collapse transition
import { collapseToast } from 'react-toastify';

collapse(node, done);