Cart drawer
- Section
- cart-drawer
- Beauty
- Shopify Liquid ready
- 0.6 KB JS
Slide-in cart review with quantity controls. It belongs to Twist, a beauty theme for hair accessories & tools, in the free, open-source Blocko library.
Open live demo Open in library
Features
- Interactive: ships 0.6 KB of vanilla JavaScript (
blko-quantity.js), registered as an idempotent Custom Element. - Shopify Liquid ready with 2 merchant settings in the Theme Editor.
- Category
cart-drawer, designed for beauty (hair accessories & tools) storefronts. - Quantity stepper is the shared mock behaviour (display only); quantity changes need cart form/Ajax wiring (cart-checkout group).
Preview
Use it with your agent
Paste this one-line prompt into any coding agent. It asks where the section should go before it changes anything.
Use the Blocko library (https://github.com/blockoai/blocko, or the Claude Code plugin: claude plugin marketplace add blockoai/blocko && claude plugin install blocko-sections@blocko) to implement the section "Cart drawer" (id `cart-drawer`, theme `twist`; live demo: https://demo.blocko.ai/html/twist/sections/cart-drawer--cart-drawer.html; Shopify bundle: sections/twist/cart-drawer/ in the repo) into my project. Before changing any code, ask me where it should go — which project/theme, which page or template, and the position (e.g. after the hero) — and whether the target is a Shopify theme or a plain HTML site, unless I already said; restate the plan and wait for my OK. Then follow the repo's AGENTS.md: keep the blko- class prefix and CSS tokens (with fallbacks), keep custom elements idempotent, don't touch unrelated code, run `shopify theme check` for Shopify targets, and finish by telling me how to add/arrange it (Theme Editor steps for Shopify).Connected to the Blocko MCP server (https://blocko.ai/mcp)? Ask your agent to run get_item for twist/cart-drawer, then get_item_source and get_install_guide. Connect your agent.