UNPKG

trellis

Version:

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

22 lines 896 B
/** * Colorpicker Vue — `useColorPickerVue` composable (ADR 0034 wedge 9). * * Import from `trellis/colorpicker/vue`: * * const picker = useColorPickerVue({ initial: '#3366ff' }); * picker.actions.setDraft('#ff8800'); * * State is a Vue `reactive` object mirrored from the core via the shared * `syncFromCore` bridge (same pattern as `trellis/forms/vue`). * * @module trellis/colorpicker/vue */ import type { ColorPickerConfig, UseColorPickerReturn } from '../core/index.js'; /** Accept either a config (fresh core) or an existing core (shared mount). */ export type ColorPickerInput = ColorPickerConfig | UseColorPickerReturn; /** * Create a reactive Vue colorpicker. The core's state is mirrored into a * `reactive()` object on every mutation. */ export declare function useColorPickerVue(input?: ColorPickerInput): UseColorPickerReturn; //# sourceMappingURL=index.d.ts.map