Toast Alert

A toast notification alert that appears briefly.

Dependencies

framer-motion

Installation

npm install framer-motion

Props

NameTypeDefaultDescription
messagestring-The message to display in the toast.
isOpenbooleanfalseControls the visibility of the toast.
onClosefunction-Function to call when the toast is closed.
durationnumber3000Duration in milliseconds for which the toast is visible.
Brought to life by Naseem Ansari – Building Experiences that Inspire