UNPKG

trellis

Version:

Agentic State Engine — event-sourced causal graph with branching, decision traces, and realtime sync for AI-native applications

24 lines 1 kB
/** * Combobox Vanilla — framework-free bindings (ADR 0034). * * Import from `trellis/combobox/vanilla`: * * const combobox = createVanillaCombobox({ items, onSelect }); * combobox.subscribe(() => render(combobox.state)); * document.addEventListener('keydown', (e) => { * if (e.key === 'Escape') combobox.actions.close(); * if (e.key === 'ArrowDown') combobox.actions.move(1); * if (e.key === 'Enter') combobox.actions.select(); * }); * * @module trellis/combobox/vanilla */ import type { ComboboxConfig, UseComboboxReturn } from '../core/index.js'; /** Accept either a config (fresh core) or an existing core (shared mount). */ export type ComboboxInput = ComboboxConfig | UseComboboxReturn; /** * Create a framework-free combobox from a config or an existing core (to * share one mount across adapters) with the standard core surface. */ export declare function createVanillaCombobox(input: ComboboxInput): UseComboboxReturn; //# sourceMappingURL=index.d.ts.map