Interface: ItemStockProps
Defined in: components/ItemStock.tsx:11
Properties
className?
optionalclassName?: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?
optionallabels?:Record<string,string>
Defined in: components/ItemStock.tsx:34
UI string overrides. Available keys: inStock, outOfStock, lowStock, available, notAvailable, pieces
showAvailability?
optionalshowAvailability?:boolean
Defined in: components/ItemStock.tsx:22
Shows whether the product is available or not available. Defaults to true.
showStock?
optionalshowStock?:boolean
Defined in: components/ItemStock.tsx:28
Shows the actual stock quantity (inventory.totalQuantity).
Defaults to true.