UNPKG

solid-tweakpane

Version:

Solid components for Tweakpane library

17 lines (16 loc) 790 B
import { FlowProps } from "solid-js"; import type { PaneConfig } from "tweakpane/dist/types/pane/pane-config"; import type { Bindable, BladeApi } from "@tweakpane/core"; import type { BladeRackApi } from "@tweakpane/core/dist/cjs/blade/common/api/blade-rack"; export type TWPBaseProps<T extends BladeApi<any> | BladeRackApi> = { ref?: (e: T) => void; }; export declare const useTWPRoot: () => BladeRackApi; export declare function TWPGroup(props: FlowProps<{ root: BladeRackApi; }>): import("solid-js").JSX.Element; export declare function Tweakpane(props: FlowProps<PaneConfig>): import("solid-js").JSX.Element; export declare const useTWPBingGroup: () => Bindable; export declare function TWPBindGroup(props: FlowProps<{ target: Bindable; }>): import("solid-js").JSX.Element;