Cart components
Cart components share TGC cart data, but opening and closing the drawer is a Framer overlay interaction that you configure.
Cart button
A cart trigger and count display.
Property | Type | Use |
|---|---|---|
Variant | Enum | Default or Mobile. |
Click | Event | Connect to your overlay’s open action. |
Canvas and Preview
Shows a design count and selected layout variant.
Published site
The count reflects runtime cart state. The Click event opens a drawer only after you wire it.
Usage example
Place Cart button in your header. Create a Framer overlay containing Cart, then connect the button’s Click event to open that overlay.
Cart list
The plugin’s Cart entry inserts a composed drawer, also available as the Cart modal section.
Property | Type | Use |
|---|---|---|
Variant | Enum | Desktop or Phone. |
Close | Event | Connect to dismiss the overlay. |
Canvas and Preview
The inner cart list has Cart item and Empty state slots plus a Canvas preview choice. In Framer Preview, Populated can deliberately display exactly two placeholder rows even when the counter is zero.
Published site
The inner cart list renders actual runtime items, or its empty state when the cart is empty.
Usage example
Use Phone for the phone breakpoint and size the overlay content to fit the viewport. Bind Close to dismiss the overlay and check both an empty and a populated cart on the published site.
Cart item
The row layout used inside the cart list’s item slot.
Property | Type | Use |
|---|---|---|
Cart item slot | Component slot on the inner cart list | Supply the cart-row layout. |
Canvas and Preview
A row can display Product name, Variant, and $0.00 placeholders.
Published site
The row’s internal cart bindings identify the current runtime item and power quantity and remove controls.
Usage example
Style the row supplied with the drawer rather than placing unrelated cart-item instances on the page. Add two distinct products and check each row’s quantity, price, and removal.
Subtotal
A cart subtotal display.
Property | Type | Use |
|---|---|---|
Supplied subtotal layout | Native layout and internal binding | Keep the runtime subtotal binding when restyling. |
Canvas and Preview
May show $0.00 while you design.
Published site
Updates from runtime cart contents; it is not a promise of the final shipping, tax, or payment amount.
Usage example
Keep the Subtotal layout in your drawer footer. Add an item, change quantity, and remove the final item; check the subtotal after each action.
Checkout button
A control that hands your cart to Swell checkout.
Property | Type | Use |
|---|---|---|
Supplied checkout layout | Native layout and internal code | Keep its checkout action when restyling. |
Canvas and Preview
The label can appear while checkout is unavailable in Preview.
Published site
For a valid populated cart, hands off to Swell checkout. An empty cart must not start a purchase.
Usage example
Add an item on the published site, open the cart, and verify the button reaches Swell checkout with the expected item. Payment completion is handled in Swell.
Wire the overlay
Create a Framer overlay and place the Cart layout inside it.
Connect Cart button’s Click event to open that overlay.
Connect Cart’s Close event to dismiss it. Configure backdrop dismissal and transitions in Framer.
Make the empty-state shopping link point to your store page and test it from more than one page.