Skip to content

API Reference

Catalog metadata for this block. Install copies the source into your project.

npx cronus-ui add cart
Skip Cart fields table
FieldTypeDefaultDescription
slug*
string"cart"Registry item id. Passed to cronus-ui add.
name*
string"Cart"Display name shown in the gallery.
description*
string"Shopping cart surfaces: a full cart page with editable line items and order summary, an empty cart, and a static slide-over drawer composition."Short summary of what the block covers.
variants
{ id: string; name: string; description: string }[]["page", "empty", "drawer"]Alternate layouts. Install a look with npx cronus-ui add <slug>--<id>. Omitted when the block has a single default.

Variants

Every published look for this block.

Skip Cart variants table
IdNameDescription
pageCart pageFull cart page with editable line items and an order summary.
emptyEmptyThe same cart chrome with no line items.
drawerDrawerSlide-over mini cart with a free-shipping meter and quick checkout.