Lanseringsuke50 % rabatt på ett år AuteurSe planer
SpacesSkaff Pro
Alle komponenter

Add to bag Pro

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

Åpne i editoren
Runners
Cloud Runner 2Ember · £120
78910
Karakter
Leken

Legg den til i appen din

$npx velvo add add-to-bag

For Claude Code, Cursor eller et hvilket som helst prosjekt med terminal.

Bruk til

  • Shops, menus, anything with a basket.

Ikke til

  • Buying straight away. Go to checkout.

Props

Lest rett fra komponentens egen TypeScript, så de er alltid oppdatert.

<AddToBag />

PropTypeStandard
targetPåkrevdRefObject<HTMLElement | null>
thumbPåkrevdstring
onAddPåkrevd() => void
labelstring'Add to bag'

<BagIcon />

PropTypeStandard
countPåkrevdnumber
labelstring'Bag'

Bedre med en skill

Gi agenten din en, så bruker den Add to bag slik den er tenkt.

Spacing and buttonsGratis

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

$npx velvo skill spacing-and-buttons
Les skillen
Motion with weightGratis

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

$npx velvo skill velvo-motion
Les skillen

Specs

Category
Buttons
Tier
Pro
Built with
React and TypeScript
Files
17
Size
380 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
NesteAura button