UNPKG

@leafygreen-ui/hooks

Version:
8 lines 398 B
import { ControlledReturnObject } from './useControlled.types'; /** * A hook that enables a component to be both controlled or uncontrolled. * * Returns a {@link ControlledReturnObject} */ export declare const useControlled: <T extends any = undefined>(controlledValue?: T, onChange?: (val: T) => void, initialValue?: T) => ControlledReturnObject<T>; //# sourceMappingURL=useControlled.d.ts.map