Progress Alert

An alert with a progress bar that automatically closes.

Dependencies

framer-motion

Installation

npm install framer-motion

Props

NameTypeDefaultDescription
messagestring-The message to display in the progress alert.
isOpenbooleanfalseControls the visibility of the alert.
onClosefunction-Function to call when the alert is closed.
durationnumber5000Duration in milliseconds for the progress bar to complete.
Brought to life by Naseem Ansari – Building Experiences that Inspire