A button with a loading animation on click.
Dependencies
framer-motion
Installation
npm install framer-motion
Props
Name | Type | Default | Description |
---|---|---|---|
label | string | Load | The text label displayed on the button before loading starts. |
onClick | () => void | undefined | The callback to trigger when the button is clicked. |