Cascader
Category Crumbs
A product category picker driven by breadcrumbs: the travelled path sits on top and is clickable, while the current level opens as tiles in two columns.
What you can change
- the root caption through rootLabel
- the button caption through submitLabel
- the trailText, branchText, leafText and emptyText captions
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/cascader-005?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
The component is self-contained: one file, no dependencies, its own palette in the local --vibeui-cascader-005-* variables. Client-side: the path and the chosen leaf live in useState. The breadcrumbs are assembled from the root caption and the path, and clicking a crumb trims the path to its index — going back two steps takes one press instead of a series of «back». Tiles in two columns leave room for a second line with the number of subcategories, so it is visible whether a node opens or is final. The confirm button prints the whole path: a leaf without the branch above it is ambiguous. The theme comes from the surrounding color-scheme through light-dark(): the panel has no surface of its own by default, it sits directly on the page background and darkens with it.
Tags
- cascader
- breadcrumb
- category
- commerce
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…