@radix-ui/react-focus-scope
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -0,9 +1,27 @@ | ||
import * as React from "react"; | ||
type FocusScopeProps = { | ||
children: (args: { | ||
ref: React.RefCallback<any>; | ||
tabIndex: number; | ||
onKeyDown: React.KeyboardEventHandler; | ||
}) => React.ReactElement; | ||
/** | ||
* Whether focus should be trapped within the FocusScope | ||
* (default: false) | ||
*/ | ||
trapped?: boolean; | ||
/** | ||
* Event handler called when auto-focusing on mount. | ||
* Can be prevented. | ||
*/ | ||
onMountAutoFocus?: (event: Event) => void; | ||
/** | ||
* Event handler called when auto-focusing on unmount. | ||
* Can be prevented. | ||
*/ | ||
onUnmountAutoFocus?: (event: Event) => void; | ||
}; | ||
export function FocusScope(props: FocusScopeProps): React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)>; | ||
export type FocusScope = { | ||
paused: boolean; | ||
pause(): void; | ||
resume(): void; | ||
}; | ||
export const Root: typeof FocusScope; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@radix-ui/react-focus-scope", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "source": "src/index.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
42560
53