Launch week50% off a year of AuteurSee plans
SpacesGet Pro
All components

Add to bag Pro

The product leaves the button on an arc, drops into the bag, and the bag bounces and counts it in.

Open in editor
Runners
Cloud Runner 2Ember · £120
78910
Character
Playful

Add it to your app

$npx velvo add add-to-bag

For Claude Code, Cursor or any project with a terminal.

Use it for

  • Shops, menus, anything with a basket.

Not for

  • Buying straight away. Go to checkout.

Props

Read from the component’s own TypeScript, so it’s always current.

<AddToBag />

PropTypeDefault
targetRequiredRefObject<HTMLElement | null>
thumbRequiredstring
onAddRequired() => void
labelstring'Add to bag'

<BagIcon />

PropTypeDefault
countRequirednumber
labelstring'Bag'

Make it better with a skill

Add one to your agent and it uses Add to bag the way it was designed.

Spacing and buttonsFree

Sizes and spaces it on the same scale as the rest of the page, so it sits right.

$npx velvo skill spacing-and-buttons
Read the skill
Motion with weightFree

Keeps its springs and press feel intact when your agent wires it into your app.

$npx velvo skill velvo-motion
Read the skill

Specs

Category
Buttons
Tier
Pro
Built with
React and TypeScript
Files
17
Size
378 KB
Needs
framer-motion
Install
npx velvo add add-to-bag
Works with
Next.js, Vite, Remix, Expo web

Licence

Velvo Pro licence
  • Personal and commercial use
  • Change it however you like
  • No credit needed

Not for resale as a component or a UI kit.

Tags

buttonsspringproreact
NextAura button