UNPKG

@zag-js/svelte

Version:

The svelte wrapper for zag

3 lines (2 loc) 225 B
import type { Machine, MachineSchema, Service } from "@zag-js/core"; export declare function useMachine<T extends MachineSchema>(machine: Machine<T>, userProps: Partial<T["props"]> | (() => Partial<T["props"]>)): Service<T>;