A button with a loading animation and secondary label 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. |
secondLabel | string | Loading | The text label displayed on the button while loading. |
onClick | () => void | undefined | The callback to trigger when the button is clicked. |