The Stock Badge component displays a colored badge indicating stock levels. It automatically changes color based on the stock quantity threshold.Documentation Index
Fetch the complete documentation index at: https://docs.laravelshopper.dev/llms.txt
Use this file to discover all available pages before exploring further.
Preview
525100
Usage
Props
The stock quantity to display. Values below 10 show as red (low stock), 10 or above show as green.
Behavior
| Stock Value | Color | Meaning |
|---|---|---|
< 10 | Red | Low stock warning |
>= 10 | Green | Stock OK |
Examples
Low Stock
3
Normal Stock
50