Socket
Book a DemoInstallSign in
Socket

@react-types/menu

Package Overview
Dependencies
Maintainers
2
Versions
1113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-types/menu - npm Package Compare versions

Comparing version

to
3.0.0-nightly-9349d12e3-250813

6

package.json
{
"name": "@react-types/menu",
"version": "3.0.0-nightly-90b6fd4f7-250221",
"version": "3.0.0-nightly-9349d12e3-250813",
"description": "Spectrum UI components in React",

@@ -12,4 +12,4 @@ "license": "Apache-2.0",

"dependencies": {
"@react-types/overlays": "3.0.0-nightly-90b6fd4f7-250221",
"@react-types/shared": "3.0.0-nightly-90b6fd4f7-250221"
"@react-types/overlays": "3.0.0-nightly-9349d12e3-250813",
"@react-types/shared": "3.0.0-nightly-9349d12e3-250813"
},

@@ -16,0 +16,0 @@ "peerDependencies": {

@@ -65,3 +65,13 @@ /*

export interface AriaMenuProps<T> extends MenuProps<T>, DOMProps, AriaLabelingProps {}
export interface AriaMenuProps<T> extends MenuProps<T>, DOMProps, AriaLabelingProps {
/**
* Whether pressing the escape key should clear selection in the menu or not.
*
* Most experiences should not modify this option as it eliminates a keyboard user's ability to
* easily clear selection. Only use if the escape key is being handled externally or should not
* trigger selection clearing contextually.
* @default 'clearSelection'
*/
escapeKeyBehavior?: 'clearSelection' | 'none'
}
export interface SpectrumMenuProps<T> extends AriaMenuProps<T>, StyleProps {}

@@ -68,0 +78,0 @@