Skip to content

CartDrawer

CartDrawer(__namedParameters): Element | null

The cart as a modal dialog: labelled, with focus inside it while it is open (Tab and Shift+Tab wrap), closed by Escape or the close button or a click outside, and focus handed back to returnFocus (the cart button) when it closes. It shows the lines and totals and a link to the cart experience; with no cart link on the holder it carries the pay form itself. It is drawn where it is placed (inside the header), not in a portal, so it keeps the page’s tokens and appearance.

RefObject<HTMLElement | null>

Element | null