ComboSelect
src/lib/components/ui/combo-select/combo-select.svelte
Purpose
A searchable single- or multi-select dropdown. Built on the shadcn-svelte™
Popover and Command primitives (which wrap BITS UI™). Used across the
settings area for role, permission, org, and module selection.
Origin
Custom — fully Primebrick-written. Composes shadcn-svelte™ Popover +
Command + Badge. Not vendored from any registry.
Usage
Default (single select, object options)
Code
Multi select
Code
Disabled options
Code
Custom item rendering
Code
Keyword boosting
Pass getSearchKeywords to let users find an option by fields not present in
the value/label (e.g. searching a role by its permissions). Keywords are passed
to bits-ui's Command.Item keywords prop for scoring.
Code
Props
Full prop table: see API reference — combo-select.
Key props: mode, value (bindable), options, valueField, labelField,
isLabelTranslated, searchable, disabled, loading, itemSnippet,
selectedSnippet, isOptionDisabled, getSearchKeywords.