blowfish/node_modules/@headlessui/react/dist/hooks/use-controllable.d.ts

2 lines
186 B
TypeScript
Raw Normal View History

2023-01-29 22:30:24 +00:00
export declare function useControllable<T>(controlledValue: T | undefined, onChange?: (value: T) => void, defaultValue?: T): readonly [NonNullable<T>, (value: any) => void | undefined];