Select
Stock-Limited Quantity Select
A quantity select capped by warehouse stock: options above what is in stock never appear in the list, and a caption honestly states the remaining count, switching tone when it runs low.
What you can change
- the field caption through label
- the warehouse stock through stock
- the upper bound of the list through maxOption
A link for your AI agent: preview, code and instructions.
Preview
Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.ru/c/select-026?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
For developers
The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.
Technical notes
Client component: useState holds the selected quantity, and the option list is built from the stock count with a maxOption ceiling — options above the stock do not physically exist rather than being disabled on the option. The caption under the field is marked role="status" and states the exact stock, switching its tone through data-tone to "warn" when the stock is at or below lowStockThreshold and to "danger" at zero. When the stock is zero the select is disabled and shows a single "—" placeholder. The palette lives in --vibeui-select-026-*.
Tags
- select
- quantity
- stock
- commerce
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…