A Floating Action Button with smooth animations and dual labels.
Add to cart
Added
Dependencies
framer-motion, react-icons
Installation
npm install framer-motion react-icons
Props
Name | Type | Default | Description |
---|---|---|---|
label | string | Add to cart | The primary label of the button |
secondryLabel | string | Added | The label displayed after the button is clicked |
onClick | () => void | undefined | The callback to trigger when the button is clicked |