Lanceringsuge50 % rabat på et år AuteurSe planer
SpacesFå 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.

Åbn i editoren
Runners
Cloud Runner 2Ember · £120
78910
Karakter
Legesyg

Føj den til din app

$npx velvo add add-to-bag

Til Claude Code, Cursor eller et hvilket som helst projekt med en terminal.

Brug den til

  • Shops, menus, anything with a basket.

Ikke til

  • Buying straight away. Go to checkout.

Props

Læst direkte fra komponentens egen TypeScript, så de altid er opdaterede.

<AddToBag />

PropTypeStandard
targetPåkrævetRefObject<HTMLElement | null>
thumbPåkrævetstring
onAddPåkrævet() => void
labelstring'Add to bag'

<BagIcon />

PropTypeStandard
countPåkrævetnumber
labelstring'Bag'

Bedre med en skill

Giv din agent en, så bruger den Add to bag, som den er tænkt.

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
Læs skillen
Motion with weightGratis

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

$npx velvo skill velvo-motion
Læs 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
NæsteAura button