Components
Cart Icon
The cart icon component displays a cart icon and shows the number of items in the cart. It is ideal to be placed in the header of your website.
Code
Props
Props should be passed as attributes to the component element.
The path to the cart page.
Defaults to /cart
The style of the icon to display.
Can be one of cart-outline
, cart-solid
, bag-outline
, or bag-solid
.
Defaults to bag-outline
Styling
The following parts are available to style the cart icon component:
The <a>
element that contains the icon and cart count.