CartButton
CartButton():
Element|null
The header’s cart button: a button whose accessible name carries the count (“Cart, 3 in cart”), a polite live region that says “Added to cart” once for each addition, and the
drawer it opens. It draws nothing when the provider has no cart. The count badge is positioned over the button, so a count appearing or changing moves nothing.
commerceRenderers() puts it in the starter header’s end slot. A host that builds its own header places <CartButton /> itself.
Returns
Section titled “Returns”Element | null