Methods

NameParamsReturnsExample
hidenullvoid
import toast from 'use-bootstrap-toaster'

const example = toast({
  body: 'Event has been created',
  autohide: false,
})

setTimeout(() => {
  example.hide()
}, 1000)
hidenullvoid
import toast from 'use-bootstrap-toaster'

toast.hide() // hide all toasts