Fading Alert

An alert that fades in and out.

Dependencies

framer-motion

Installation

npm install framer-motion

Props

NameTypeDefaultDescription
messagestring-The message to display in the fading alert.
isOpenbooleanfalseControls the visibility of the alert.
onClosefunction-Function to call when the alert is closed.
durationnumber3000Duration in milliseconds before the alert starts fading out.
Brought to life by Naseem Ansari – Building Experiences that Inspire