UNPKG

@zag-js/solid

Version:

The solid.js wrapper for zag

7 lines (4 loc) 278 B
import { MachineSchema, Machine, Service } from '@zag-js/core'; import { Accessor } from 'solid-js'; declare function useMachine<T extends MachineSchema>(machine: Machine<T>, userProps?: Partial<T["props"]> | Accessor<Partial<T["props"]>>): Service<T>; export { useMachine };