Cascader
Rubric Selects
A classified-ad rubric built from three native selects: the cascade uses the system picker on a phone, and changing an upper level resets the lower ones.
What you can change
- label — the heading of the field group
- tree — the rubric tree, of any breadth
- defaultPath — the path selected at first render
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-015?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, zero dependencies, its own palette in the local --vibeui-cascader-015-* variables. Client-side: the path through the tree lives as a single array in useState. Every level is a native <select> with its own <label>, and the root is a <fieldset> with a <legend>, so the whole group is announced as a form. Changing a level trims the path by depth (path.slice(0, depth)) and appends the new value, so the lower levels reset automatically, without manual synchronisation. A level with no options is not hidden but gets disabled and the caption «level not needed»: a disappearing field shifts the form. The readiness flag accounts for the fact that some categories have no third level — otherwise the publish button would never unlock. There are deliberately no animations: a native select is drawn by the system.
Tags
- cascader
- select
- mobile
- classifieds
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…