Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@interop-ui/react-focus-scope

Package Overview
Dependencies
Maintainers
4
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@interop-ui/react-focus-scope - npm Package Compare versions

Comparing version 0.0.1-5 to 0.0.1-6

6

package.json
{
"name": "@interop-ui/react-focus-scope",
"version": "0.0.1-5",
"version": "0.0.1-6",
"license": "MIT",

@@ -20,4 +20,4 @@ "source": "src/index.ts",

"dependencies": {
"@interop-ui/react-utils": "0.0.1-14",
"@interop-ui/utils": "0.0.1-6"
"@interop-ui/react-utils": "0.0.1-15",
"@interop-ui/utils": "0.0.1-7"
},

@@ -24,0 +24,0 @@ "devDependencies": {

@@ -13,27 +13,2 @@ # `react-focus-scope`

```js
import * as React from 'react';
import { FocusScope } from '@interop-ui/react-focus-scope';
function MyComponent(props) {
const [open, setOpen] = React.useState(false);
return (
<>
<button type="button" onClick={() => setOpen((prev) => !prev)}>
Open
</button>
{open && (
<FocusScope trapped>
{({ ref }) => (
<div ref={ref}>
<input type="text" />
<button type="button">Click me</button>
</div>
)}
</FocusScope>
)}
</button>
);
}
```
This is an internal utility, not intended for public usage.
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