UNPKG

trellis

Version:

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

23 lines 1.01 kB
/** * Combobox Vue — `useComboboxVue` composable (ADR 0034). * * Import from `trellis/combobox/vue`: * * const { state, actions } = useComboboxVue({ items, onSelect }); * <input :value="state.query" @input="actions.setQuery(($event.target as HTMLInputElement).value)" /> * * State is a Vue `reactive` object mirrored from the core via the shared * `syncFromCore` bridge (same pattern as `trellis/forms/vue`). * * @module trellis/combobox/vue */ 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 reactive Vue combobox. The core's state is mirrored into a * `reactive()` object on every mutation. Pass a config for a fresh core, or * an existing core to share one mount across adapters. */ export declare function useComboboxVue(input: ComboboxInput): UseComboboxReturn; //# sourceMappingURL=index.d.ts.map