Select · single · multi · combobox
One component, three shapes — a select, a multi-select with chips, a combobox — with full keyboard support, search highlighting, groups, async options and virtualised lists.
Select
⚡Kartex Deck
icons · descriptions · disabled
zap
🍎Apple
type a letter to jump — ↑ ↓ Enter
Apple
Multi-select
🇹🇷Türkiye🇯🇵Japan
search · chips · select all · max 6
tr, jp
🍌Banana🥭Mango
+N after three chips
Banana, Mango
feature
creatable — type a new one, Enter
feature
Combobox
grouped · search by city or region
Europe/Istanbul
async — asks a (simulated) server as you type
—
virtualised — only the rows in view exist
—
editable — free text with suggestions
Sizes & states
Medium
Locked
Usage
import { signal } from "./index.js";import { Select } from "./components/select.js"; // ── Select ───────────────────────────────────────────────────────────────const fw = signal(null);Select({ value: fw, clearable: true, placeholder: "Pick a framework…", options: [ { value: "zap", label: "Kartex Deck", icon: "⚡", description: "Signals, no virtual DOM" }, { value: "react", label: "React", icon: "⚛️", description: "Components and hooks" }, { value: "ember", label: "Ember", icon: "🐹", disabled: true },] }) // ── Multi-select: chips, search, select all, a limit ─────────────────────const picks = signal([]);Select({ multiple: true, searchable: true, selectAll: true, max: 6, maxTags: 3, value: picks, options: countries }) // { value, label, icon, group, keywords } // creatable: a value that isn't in the list can be added (Enter)Select({ multiple: true, searchable: true, creatable: true, value: tags, options: ["bug", "docs"] }) // ── Combobox: type to filter; groups; matches are underlined ─────────────Select({ searchable: true, value: tz, options: [ { value: "Europe/Istanbul", label: "Istanbul", group: "Europe", keywords: "turkey" },] }) // async: options come from your server as the reader types (debounced)Select({ load: async (q) => (await fetch("/api/cities?q=" + q)).json(), value: city }) // free text with suggestions — the text typed is the valueSelect({ editable: true, value: email, options: () => suggestionsFor(email()) }) // 10,000+ options are virtualised: only the rows in view are in the DOM.// Keyboard: ↑ ↓ PgUp PgDn Home End · Enter/Space · Esc · type to jump