Skip to content
Calm motion: animations on this site only fade, with no movement

CascadeSelect ​

Nested options, one column per level

Use it for values that live in a hierarchy (country → city → area, category → subcategory), where a flat select has hundreds of entries. Each level opens as its own column, so the user always sees where they are. The trigger shows the full path or only the leaf.

If the hierarchy is deep or ragged, BlessTreeSelect (a tree in a popover) is usually the better fit. If the options are flat but many, BlessCombobox.

The model is the leaf's value. select emits (option, path) with the whole trail when you need the parents too. Keyboard: ↑ / ↓ move in a column, → drills into children, ← backs out (both follow reading direction in RTL), Enter picks, Esc closes. Inside a BlessField the trigger takes the field's label. label is only for a select with no visible label.

Basic
— · ↑↓ move, → drill, ← back, Enter pick

Not inside <p>

The floating panel is a <div>. HTML closes a <p> at a <div>. For this reason, a trigger placed inside a paragraph renders differently on the server and the client. Wrap it in a <span> or <div> instead.

Usage ​

ts
import { BlessCascadeSelect } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
options*BlessCascadeOption<T>[]—
placeholderstring"Select…"
showPathbooleantrueshow the full path in the trigger (A › B › C) or only the leaf
separatorstring" › "
disabledboolean—
invalidboolean—
labelstring—accessible name when there is no visible label; the shown value is announced either way
idstring—
size"md" | "sm" | "lg""md"
modelValueT—

Events

NamePayloadDescription
select[option: BlessCascadeOption<T>, path: BlessCascadeOption<T>[]]
update:modelValue[value: T | undefined]

Released under the MIT License. Character names and artwork belong to their owners.