UNPKG

shadcn-react

Version:
3 lines (2 loc) 190 B
/// <reference types="react" /> export declare function useControl<T, K = T>(defaultState: T, propState?: T, propSetState?: (value: K) => any): [T, React.Dispatch<React.SetStateAction<K>>];