Skip to main content

Interface: ItemStockProps

Defined in: components/ItemStock.tsx:11

Properties

className?

optional className?: string

Defined in: components/ItemStock.tsx:37

Extra CSS class applied to the root element.


inventory

inventory: ProductInventory

Defined in: components/ItemStock.tsx:16

Product inventory to display stock and availability for. Required — drives all stock calculations and display logic.


labels?

optional labels?: Record<string, string>

Defined in: components/ItemStock.tsx:34

UI string overrides. Available keys: inStock, outOfStock, lowStock, available, notAvailable, pieces


showAvailability?

optional showAvailability?: boolean

Defined in: components/ItemStock.tsx:22

Shows whether the product is available or not available. Defaults to true.


showStock?

optional showStock?: boolean

Defined in: components/ItemStock.tsx:28

Shows the actual stock quantity (inventory.totalQuantity). Defaults to true.