Skip to content
Hazine

Mini carts

4 of 6 shipped. Each take is a different structure, and the note under its title says how.

  • mini carts

    Trigger and panel are one surface that grows from pill to panel, with no overlay, backdrop or focus trap. It leaves the page while the cart is empty and takes an edge offset to clear page controls.

    shadcn add @hazine/mini-cart-floating-pill

    Depends on badge, button, @hazine/heading, @hazine/use-controllable-state, lucide-react

  • mini carts

    Bottom sheet with two snap heights and the summary above the lines, so checkout is reachable at half height. Each drag (expand, collapse, dismiss) has a button equivalent.

    shadcn add @hazine/mini-cart-bottom-sheet

    Depends on button, drawer, @hazine/heading, @hazine/use-controllable-state, lucide-react

  • mini carts

    Non-modal popover on its trigger with no editing: only the newest lines are listed, older ones fold into one summed row that links to the cart, and the page behind stays usable.

    shadcn add @hazine/mini-cart-header-popover

    Depends on badge, button, popover, @hazine/heading, lucide-react

  • mini carts

    Modal side sheet with three fixed zones: header with count and shipping meter, scrolling lines, pinned subtotal footer. Focus is trapped while open and returns to the cart button.

    shadcn add @hazine/mini-cart-side-drawer

    Depends on button, sheet, @hazine/heading, @hazine/use-controllable-state, lucide-react

Planned 2

  • Added to cart confirmation

    Confirms a single event instead of listing the whole cart. It is announced through a live region and never steals focus. Because it holds actions it stays until dismissed with its close button or Escape, with an opt-in timeout that pauses on hover and focus.

    Pro
  • Compact cart strip

    Always visible inline strip with no open or closed state and no line editing. It summarises and links out, which suits landing pages and single-product stores.

    Pro