Cascader
Choose one item at the end of a path, with every level side by side so the way back is always in view. Pointing at an item opens its column; choosing a leaf closes the menu and the field shows the whole path.
Bergen is paused this week.
When to use
- Region › Country › City, Category › Type › Model, Folder › Subfolder.
- Deep but narrow hierarchies.
When not to use
- Choosing many; use the tree select.
- Flat or searchable lists; use the combobox.
Installation
pnpm dlx shadcn@latest add @caliper/cascader
Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
Cascader
7 props
cascaderPath
0 props
No props of its own; it accepts the native props of its root element.
Keyboard
- ↓
- Moves to the next item or value.
- ↑
- Moves to the previous item or value.
- →
- Moves to the next item or value.
- ←
- Moves to the previous item or value.
- Enter
- Activates the focused control.
- Space
- Activates the focused control.
Accessibility
It exposes listbox and option semantics, with aria-label, aria-selected and aria-disabled kept in step with state.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/cascader.mdThe index of every part is at /llms.txt.