Skip to main content

Interface: ItemStockProps

Defined in: components/ItemStock.tsx:12

Properties

className?

optional className?: string

Defined in: components/ItemStock.tsx:38

Extra CSS class applied to the root element.


inventory

inventory: ProductInventory

Defined in: components/ItemStock.tsx:17

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:35

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


showAvailability?

optional showAvailability?: boolean

Defined in: components/ItemStock.tsx:23

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


showStock?

optional showStock?: boolean

Defined in: components/ItemStock.tsx:29

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