Motion Loading 2

A button with a loading animation and secondary label on click.

Dependencies

framer-motion

Installation

npm install framer-motion

Props

NameTypeDefaultDescription
labelstringLoadThe text label displayed on the button before loading starts.
secondLabelstringLoadingThe text label displayed on the button while loading.
onClick() => voidundefinedThe callback to trigger when the button is clicked.
Brought to life by Naseem Ansari – Building Experiences that Inspire