Cascader
Stepwise Picker
A cascader for a narrow screen: one level at a time, a back arrow in the header, and the slide direction telling the user which way they stepped.
What you can change
- the scenario caption through heading
- the backText, stepText, selectedText, currentText and rootText captions
- the accent colour through accent
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-004?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-004-* variables. Client-side: the path, the step direction and the chosen leaf live in useState. The list is remounted by a key built from the path, so the CSS animation replays on every step, and the keyframes name is switched by the data-direction attribute — going forward the list arrives from the right, going back from the left. The «back» button is disabled on the top level: a disabled target is more honest than a vanished one, because the header does not change height. The theme comes from the surrounding color-scheme through light-dark(): the card has no surface of its own by default, it sits directly on the page background and darkens with it.
Tags
- cascader
- mobile
- stepper
- drill-down
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…