Packages
react
components
CartLineQuantity

CartLineQuantity Component

The CartLineQuantity component renders a specified HTML tag or React component with the quantity of the cart line. It must be a descendant of the CartLineProvider component and utilizes the useCartLine() hook internally.

Usage

import React from "react";
import { CartLineQuantity } from "@airsoko/react";
 
const MyComponent = () => {
  return <CartLineQuantity />;
};
 
export default MyComponent;

Props

NameTypeDescriptionDefault
asReact.ElementType | stringThe base element or component to render.-
...otherComponentPropsWithoutRef<ComponentGeneric>Additional props to be spread onto the base element-