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
| Name | Type | Description | Default |
|---|---|---|---|
| as | React.ElementType | string | The base element or component to render. | - |
| ...other | ComponentPropsWithoutRef<ComponentGeneric> | Additional props to be spread onto the base element | - |