Skip to components
DEVELOPER REFERENCE

Cascader API

Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.

Cascader7 props1 callbacks0 methods

Preset and CSS

Set preset.className to attach your CSS class to the component's rendered surface. Explicit component props take precedence over preset options.

CSS parts in the example [data-part="root"]

Use styles.root and styles.parts in a theme and generate a CSS file with themeToCss. For other JSON-friendly component props, spread presetProps(preset) before explicit props. Parts and states depend on configuration; the gallery shows those visible in the current preview.

Props7

Cascader props
NameTypeDescription
labelRequiredstringAccessible label for the trigger and selection panel.
nodesRequired
readonly TreeNode[]Inspect type
Root options with unique IDs.
valueOptionalstring | undefinedSelected option ID.
placeholderRequiredstringText shown when no option is selected.
presetOptional
ClassPreset | undefinedInspect type
Optional presentation preset.
classNameOptionalstring | undefinedAdditional root class names.
disabledOptionalboolean | undefinedDisable opening and selection.

Events and callbacks1

Cascader events and callbacks
NameTypeDescription
onValueChangeOptional
((id: string) => void) | undefinedInspect type
Called when a leaf option is selected.

Methods0

No component-specific imperative methods. Use props and callbacks to control this component.