Motion Loading

A button with a loading animation on click.

Dependencies

framer-motion

Installation

npm install framer-motion

Props

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