Skip to content
Basket drawer, light
Light
Basket drawer, dark
Dark

Every state

  • Basket drawer, default, light
    Basket drawer, default, dark

    default

  • Basket drawer, focus, light
    Basket drawer, focus, dark

    focus

  • Basket drawer, open, light
    Basket drawer, open, dark

    open

  • Basket drawer, focus-quantity, light
    Basket drawer, focus-quantity, dark

    focus-quantity

  • Basket drawer, unticked, light
    Basket drawer, unticked, dark

    unticked

  • Basket drawer, more-of-one, light
    Basket drawer, more-of-one, dark

    more-of-one

  • Basket drawer, empty, light
    Basket drawer, empty, dark

    empty

Props

PropTypeDefaultWhat it does
idstring"drawer-cart"Id prefix for the title.
openLabelstring"Basket"Trigger text; the line count follows it.
titlestring"Your basket"Drawer heading.
itemsDrawerCartItem[]three linesThe lines: id, title, detail, unit price, quantity, image, alt.
currencystring"EUR"ISO currency for Intl.NumberFormat.
localestring"en-NL"Locale for Intl.NumberFormat.
totalLabelstring"Total"Label over the total.
notestring–Muted line under the total.
checkoutLabelstring"Check out"Checkout button text.
emptyTitlestring–Heading of the empty state.
emptyTextstring–Text of the empty state.
emptyActionLabelstring"Keep browsing"Button of the empty state; closes the drawer.
onItemsChange(items: DrawerCartItem[]) => void–Called when a quantity changes or a line is removed.
onCheckout(items: DrawerCartItem[]) => void–Called with the ticked lines.
openboolean–The drawer is open (controlled).
defaultOpenboolean–Opens the drawer on mount (previews and sheets).
onOpenChange(open: boolean) => void–Called when the drawer opens or closes.
containedboolean–Draws the panel inside the nearest relative parent instead of fixed over the page. For previews and sheets; leave off on a real page.
classNamestring–Extra classes on the wrapper.

More drawers

All 4

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans