diff --git a/packages/hooks/src/useControllableValue/index.ts b/packages/hooks/src/useControllableValue/index.ts index eb656966c8..6fa2f1384b 100644 --- a/packages/hooks/src/useControllableValue/index.ts +++ b/packages/hooks/src/useControllableValue/index.ts @@ -26,7 +26,9 @@ function useControllableValue( props?: Props, options?: Options, ): [T, (v: SetStateAction, ...args: any[]) => void]; -function useControllableValue(props: Props = {}, options: Options = {}) { +function useControllableValue(defaultProps: Props, options: Options = {}) { + const props = defaultProps ?? {}; + const { defaultValue, defaultValuePropName = 'defaultValue',