Prism Docs

Select

A selection component with search and multi-select support.

Basic Usage

Basic dropdown selection.

  • Apple
  • Banana
  • Cherry
  • Dragonfruit
  • Elderberry
Value: apple
<prism-select [options]="options" [(value)]="singleValue" label="Fruit" />

Multi Select

Allows selecting multiple options.

  • Apple
  • Banana
  • Cherry
  • Dragonfruit
  • Elderberry
Value: [ "apple", "banana" ]
<prism-select [options]="options" [multiple]="true" [(value)]="multiValue" label="Fruits" />

Searchable

Enable filtering options with a search input.

  • Apple
  • Banana
  • Cherry
  • Dragonfruit
  • Elderberry
<prism-select [options]="options" [searchable]="true" label="Search Fruit" />

PrismSelect API

NameTypeDefaultDescription
optionsinput<SelectOption[]>[]Array of data options.
placeholderinput<string>'Select...'Placeholder for the select input.
searchableinput<boolean>falseWhether the select is searchable.
multipleinput<boolean>falseAllow multiple selection.
allowClearinput<boolean>falseShow clear button icon.
sizeinput<'sm' | 'md' | 'lg'>'md'Size of the component.
maxHeightinput<string>'300px'Maximum height of the dropdown.
valuemodel<unknown>nullTwo-way bound selected value(s).
disabledmodel<boolean>falseWhether the select is disabled.