Components · Forms · Cascader
Back to Cascader typesCascader
Use for a field that selects hierarchical, multi-level data - like Country / State / City - where picking an option in one column reveals the next column's choices, letting the user drill down to a final value.
Properties
Size, corner radius, label and placeholder are properties of the same component, not separate fields - change them below to check this field's style and states in the Live Preview.
Live Preview
Both types compared side by side, each in all 10 states. One full matrix is rendered per selected combination of Size and Corner radius - check more than one option in a dropdown to see every combination side by side.
Multiple selection + Search
Two documented Ant Cascader features the matrix above can't show, since it's single-select with no search: typing narrows the first column to matches (highlighted inline), and a checkbox per option lets more than one leaf be picked across different branches - here, China and Beijing are checked at once, in different columns.
When to use
Any field that selects hierarchical, multi-level data where each choice narrows down the next set of options, rather than a single flat list.
Validation
A required Cascader has two invalid states, not one: nothing picked at all, and a path started but never finished - a user who picked Country and State but never reached City has technically "touched" the field, so the error needs to say which level is still open rather than treating both cases the same.
- Required marking - the red asterisk sits on the field label, same as Select, regardless of how many levels the path has.
- Validation timing - validate on blur (closing the panel without reaching a leaf) and again on submit, so an incomplete path is caught the moment the user moves on, not only at the end of the form.
- Error message - distinguish the two failure modes: "Choose a location" when nothing is selected at all, versus "Choose a city to finish this selection" when Country and State are picked but City isn't - a generic "Required field" doesn't tell the user which column to reopen.
- Recovery - reopening the panel from an incomplete-path error should land on the column where the path stopped, not back at column one, so the user resumes rather than restarts.
Component Guide
Overview
Cascader selects hierarchical, multi-level data - like Country / State / City - through a multi-column panel where picking an option in one column reveals the next column's choices, letting the user drill down step by step to a final value.
When to Use
- A hierarchical address or location field - Country, then State/Province, then City.
- A category drill-down - a top-level category narrowing into subcategories.
- An org chart or file-path picker - any strictly nested structure with a clear parent-to-child relationship.
When Not to Use
- A single flat list with no hierarchy - use Select instead - Cascader's multi-column panel adds unneeded complexity for a non-nested choice.
- Data that's nested but the user needs to see the whole tree at once, expanding and collapsing branches freely - use Tree Select instead of Cascader's linked-column drill-down.
- Free-form text with a suggestion list - use Autocomplete, not a fixed hierarchical structure.
Best Practices
- Show the full selected path in the closed trigger (e.g. "Asia / India / Mumbai"), not just the final leaf value.
- Keep each column's option count reasonable - if the deepest level has hundreds of items, add search/filtering within the column.
- Let users jump back to an earlier column to change a prior choice without restarting the whole selection.
Do and Don't
Do
A genuine hierarchy, two levels deep, with the chosen path spelled out in the control so the selection is readable without reopening it.
Don't
A single flat level in a Cascader is a Select wearing extra machinery. Only reach for it when the options genuinely nest.
Accessibility
- Each column is independently reachable and operable by keyboard, with arrow keys moving within a column and revealing the next one on selection.
- The currently selected path at every level is announced as the user drills down, not only shown visually.
- The trigger's accessible name reflects the full selected path once a choice is made.
Related Components
Select, Tree Select, Autocomplete.
{
"component": "Cascader",
"category": "Forms",
"summary": "Cascader selects hierarchical, multi-level data - like Country / State / City - through a multi-column panel where picking an option in one column reveals the next column's choices, letting the user drill down step by step to a final value.",
"whenToUse": [
"A hierarchical address or location field - Country, then State/Province, then City.",
"A category drill-down - a top-level category narrowing into subcategories.",
"An org chart or file-path picker - any strictly nested structure with a clear parent-to-child relationship."
],
"whenNotToUse": [
"A single flat list with no hierarchy - use Select instead - Cascader's multi-column panel adds unneeded complexity for a non-nested choice.",
"Data that's nested but the user needs to see the whole tree at once, expanding and collapsing branches freely - use Tree Select instead of Cascader's linked-column drill-down.",
"Free-form text with a suggestion list - use Autocomplete, not a fixed hierarchical structure."
],
"bestPractices": [
"Show the full selected path in the closed trigger (e.g. \"Asia / India / Mumbai\"), not just the final leaf value.",
"Keep each column's option count reasonable - if the deepest level has hundreds of items, add search/filtering within the column.",
"Let users jump back to an earlier column to change a prior choice without restarting the whole selection."
],
"doAndDont": {
"do": "A genuine hierarchy, two levels deep, with the chosen path spelled out in the control so the selection is readable without reopening it.",
"dont": "A single flat level in a Cascader is a Select wearing extra machinery. Only reach for it when the options genuinely nest."
},
"accessibility": [
"Each column is independently reachable and operable by keyboard, with arrow keys moving within a column and revealing the next one on selection.",
"The currently selected path at every level is announced as the user drills down, not only shown visually.",
"The trigger's accessible name reflects the full selected path once a choice is made."
],
"relatedComponents": [
"Select",
"Tree Select",
"Autocomplete"
]
}