UNPKG

@zag-js/solid

Version:

The solid.js wrapper for zag

14 lines (11 loc) 390 B
import { BindableParams, Bindable } from '@zag-js/core'; import { Accessor } from 'solid-js'; declare function createBindable<T>(props: Accessor<BindableParams<T>>): Bindable<T>; declare namespace createBindable { var cleanup: (fn: VoidFunction) => void; var ref: <T>(defaultValue: T) => { get: () => T; set: (next: T) => void; }; } export { createBindable };