@chakra-ui/react-use-controllable-state
Advanced tools
Comparing version 0.0.0-dev-20220824082222 to 0.0.0-dev-20220912120959
import * as react from 'react'; | ||
/** | ||
* Given a prop value and state value, the useControllableProp hook is used to determine whether a component is controlled or uncontrolled, and also returns the computed value. | ||
* | ||
* @see Docs https://chakra-ui.com/docs/hooks/use-controllable#usecontrollableprop | ||
*/ | ||
declare function useControllableProp<T>(prop: T | undefined, state: T): [boolean, T]; | ||
@@ -10,4 +15,9 @@ interface UseControllableStateProps<T> { | ||
} | ||
/** | ||
* The `useControllableState` hook returns the state and function that updates the state, just like React.useState does. | ||
* | ||
* @see Docs https://chakra-ui.com/docs/hooks/use-controllable#usecontrollablestate | ||
*/ | ||
declare function useControllableState<T>(props: UseControllableStateProps<T>): [T, react.Dispatch<react.SetStateAction<T>>]; | ||
export { UseControllableStateProps, useControllableProp, useControllableState }; |
{ | ||
"name": "@chakra-ui/react-use-controllable-state", | ||
"version": "0.0.0-dev-20220824082222", | ||
"version": "0.0.0-dev-20220912120959", | ||
"description": "", | ||
@@ -30,3 +30,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@chakra-ui/react-use-callback-ref": "0.0.0-dev-20220824082222" | ||
"@chakra-ui/react-use-callback-ref": "2.0.3" | ||
}, | ||
@@ -33,0 +33,0 @@ "peerDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7417
119
+ Added@chakra-ui/react-use-callback-ref@2.0.3(transitive)
- Removed@chakra-ui/react-use-callback-ref@0.0.0-dev-20220824082222(transitive)