Socket
Socket
Sign inDemoInstall

@chakra-ui/react-use-controllable-state

Package Overview
Dependencies
Maintainers
3
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chakra-ui/react-use-controllable-state - npm Package Compare versions

Comparing version 0.0.0-dev-20220824082222 to 0.0.0-dev-20220912120959

10

dist/index.d.ts
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 };

4

package.json
{
"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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc