thegeneralyst/AnopaDocs
Cart

Close Cart Overlay

Closes the cart drawer and keeps Vaul and the Anopa drawer store in sync.

Close Cart

AP_CloseCartOverlay wraps a custom button design and closes the cart drawer when clicked, keeping the Vaul drawer and the Anopa drawer store in sync. Place it inside your cart drawer design — typically as the close button in the cart header. Connect your designed icon or button to the slot and the component handles all close logic automatically with no additional configuration needed.

Property Controls

ControlTypeDefaultDescription

Custom Icon

Component instance for your custom close icon, used when Use Custom Icon is enabled.