ProSection
Cart Drawer
Cart drawer laid out like an itemized receipt: mono prices, hairline rules, quantity steppers, remove with undo, savings line and free shipping hint.
When to use it
- Mini cart that slides in after add to cart or from the header cart icon
- Shops that want quantity edits and removal without leaving the page
Watch out
- Keep cart state in your store and pass items with onItemsChange; the drawer does not persist anything
- Compute tax and shipping on the server at checkout; the subtotal here is only for display
Let your agent add it
One copy holds the install command, when to use it, the props and the design rules. Paste it into Claude Code, Cursor or Codex.
This is a Pro block
One license unlocks every Pro block, now and in the future.
One-time $129 with a year of updates, or $19 a month. Use it in unlimited personal and client projects; installed blocks stay yours.
Install with your license
- 1. Add the SunUI Pro registry to
components.json.components.json{ "registries": { "@sunui-pro": { "url": "https://sunui.synvize.com/r/pro/{name}.json", "headers": { "Authorization": "Bearer ${SUNUI_LICENSE_KEY}" } } } } - 2. Put your license key in
.env.local.$ SUNUI_LICENSE_KEY=your-license-key - 3. Install the block.
$ npx shadcn@latest add @sunui-pro/cart-drawer
Similar blocks
- Pro
- Pro
- Pro
- Pro
- Pro





