Forms

Cascader

@xui/cascader

A cascading column select — each level opens the next column of children; choosing a leaf commits the whole path. value is the array of chosen values.

Install

pnpm add @xui/cascader

Add the barrel to a standalone component's imports:

import { XuiCascaderImports } from '@xui/cascader';

@Component({
  imports: [XuiCascaderImports],
  // …
})

Examples

Basic

Loading preview…

Preselected

Loading preview…

API

XuiCascader

componentxui-cascader

A cascading, column-based select. Each level opens the next column of children; choosing a leaf commits the full path. value is a two-way bindable array of values from root to leaf.

Inputs

NameTypeDefaultclassClassValueExtra classes, merged into the component's own rather than replacing them.''optionsXuiCascaderOption[]The root options. Each may carry children, which become the next column when it is selected.[]valuetwo-waystring[]The selected path, as option values from the root down. Two-way bindable with [(value)].[]placeholderstringTrigger text shown while nothing is selected.'Select'disabledbooleanBlock interaction and dim the trigger. The panel cannot be opened.false

Source

libs/ui/cascader/xui

xUI 2.0.0 — Apache 2.0 licensed. Built with Angular and Tailwind CSS.