Store

Added to Cart Dialog

Add-to-bag confirmation Dialog showing the item just added, the bag subtotal and item count, with View bag and Checkout links. Its open state passes through for a product page to own.

The source comes with full access.

One payment of $149 ($49 for now) opens the source right here and lets the CLI install every paid component, with lifetime updates.

Installation

pnpm dlx shadcn add @01orbital/cart-dialog-01
npx shadcn add @01orbital/cart-dialog-01
yarn shadcn add @01orbital/cart-dialog-01
bunx --bun shadcn add @01orbital/cart-dialog-01

Part of the 01orbital library. With a license, put ORBITAL_TOKEN in .env.local and the same command installs it (licensed install, pricing).

It lands at components/blocks/store/cart-dialog-01/index.tsx, as source you own and edit.

Usage

import CartDialog01 from "@/components/blocks/store/cart-dialog-01"

export default function Example() {
  return <CartDialog01 />
}

API reference

It accepts the props of the Base UI part it wraps.

Dependencies

npm: @phosphor-icons/react, cn. The CLI installs them for you.

Registry pieces it installs with it:

  • button
  • dialog
  • use-cart