Listbox

Accessible single or multiple selection list.

Usage

PreviewCode
FrameworksAngularReactVue

API Reference

VoltListboxHeader — volt-listbox-header

InputTypeDefault
class string ''
id string —

VoltListboxOption — volt-listbox-option

InputTypeDefault
id string —
value *T —
disabled boolean false
inset ListboxOptionVariants['inset'] false
class string ''

VoltListboxSection — volt-listbox-section

InputTypeDefault
class string ''

VoltListbox — volt-listbox

InputTypeDefault
class string ''
id string —
mode NgpSelectionMode 'single'
value T[] []
disabled boolean false
compareWith (a: T, b: T) => boolean (a, b) => a === b
OutputType
valueChangeT[]

CVA variants

PropOptionsDefault
inset true | false —

Component Source

Install via CLI:npx @voltui/cli add listbox
TypeScript
Loading editor…

Copy this code to your project. The component uses ng-primitives/listbox.