Combobox
The combobox core is shared by the Vue, React, Svelte, Solid, and Angular packages. It handles selection, filtering, validation, keyboard navigation, and focus. Each adapter translates the core snapshot into its framework's state model and leaves the markup to you.
Every package ships without styles. Use daisyUI, Tailwind, or your own CSS. Start with the core if you are writing an adapter, or open your framework below for install steps, examples, and the API it exposes.
Packages
Core
Framework-independent state machine. Use it directly to build an adapter.
@pdanpdan/headless-combobox-coreVue
A renderless Vue 3 component with a scoped slot. Bind v-model for a controlled value, or omit it and let the component keep the selection.
@pdanpdan/headless-combobox-vueReact
A render-prop component. Pass value and onChange for a controlled combobox, or omit value and use defaultValue for an uncontrolled one.
@pdanpdan/headless-combobox-reactSvelte
A renderless Svelte 5 component with a children snippet. modelValue is optional; without onChange the component keeps the selection internally.
@pdanpdan/headless-combobox-svelteSolid
A render-prop component for Solid 2. The render prop receives an accessor, so call scope() inside JSX to keep bindings reactive.
@pdanpdan/headless-combobox-solidAngular
A signals store. Call injectCombobox from an injection context and read combobox.snapshot() in the template. Angular gets a store rather than a render-prop component.
@pdanpdan/headless-combobox-angularShared behavior
The adapters run the same core tests. Selection, filtering, min/max validation, keyboard navigation, tab selection, and programmatic control behave the same in each framework. Only the binding syntax changes.
The examples cover text and object options, grouped options, internal and controlled state, removable chips, validation, select-on-tab, typeahead, and programmatic control. See Styling for popup positioning and CSS state hooks.
For LLMs
combobox-llm.md has the props, the scope fields and one working example per framework, so an assistant can write a combobox without reading the playground.