Select

Displays a list of options for the user to pick from—triggered by a button.

Usage

PreviewCode

Selected value:

Native Select

PreviewCode

Selected value: apple

A lighter alternative to volt-select for simple cases: it's the real native <select> element (full mobile/native picker behavior, works with formControl/ngModel for free), styled to match the theme.

API Reference

VoltNativeSelect — select[voltNativeSelect]

InputTypeDefault
disabled boolean false

VoltSelectItem — volt-select-item

InputTypeDefault
value unknown undefined
disabled boolean false

VoltSelect — volt-select

InputTypeDefault
placeholder string 'Select an option'
ariaLabel string ''
value unknown undefined
disabled boolean false
multiple boolean false
compareWith (a: unknown, b: unknown) => boolean Object.is
dropdownPlacement Placement 'bottom-start'
container string | HTMLElement | null 'body'
flip NgpFlipInput true
scrollToOption ((index: number) => void) | undefined undefined
allOptions unknown[] | undefined undefined
displayWith (value: unknown) => string value => String(value)
OutputType
valueChangeunknown

Component Source

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

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