UNPKG

284 BTypeScriptView Raw
1/**
2 * Determines whether a component is controlled.
3 * @param props - Component props
4 * @param valueProp - Prop containing the controlled value
5 * @returns true if controlled, false if uncontrolled
6 */
7export declare function isControlled<P>(props: P, valueProp: keyof P): boolean;