ngx-prompt-kit

Model List

ngx-prompt-kit original — not part of ibelick/prompt-kit

Inline searchable list of models. Open WebUI / Ollama style — circular icon, name, optional inline metadata. Renders as a list, not a dropdown — wrap in your own popover/dialog if you need that surface.

Examples

Searchable list

Type to filter by name, provider, or tagline. Selected row gets a soft accent background and a check icon. Models without iconUrl fall back to two-letter initials.

Without search

Set [showSearch]='false' for short, fixed lists where filtering would be noise.

Installation

Add the model-list component (and the cn() utility) to your project.

ng generate ngx-prompt-kit:model-list

Component API

PkModelList

PropTypeDefaultDescription
modelsreadonly Model[]Selectable models (required).
selectedIdstring | null null Two-way bindable via [(selectedId)].
showSearchboolean true Renders the search input at the top of the list.
searchPlaceholderstring "Search models" Placeholder text for the search input.
classstringExtra classes for the host.

Model interface

PropTypeDefaultDescription
idstringStable identifier (required).
namestringDisplay name (required).
iconUrlstring?Logo image source. Falls back to initials when absent.
providerstring?Searchable but not displayed in this layout.
taglinestring?Inline metadata — parameter size, context length, etc.
disabledboolean?Greys the row out and suppresses (changed).

Outputs

PropTypeDefaultDescription
changed(model: Model) => voidFires when a non-disabled model is picked.