We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59eeebc commit 8b1d93aCopy full SHA for 8b1d93a
src/Dom/focus.ts
@@ -173,6 +173,11 @@ export function lockFocus(element: HTMLElement): VoidFunction {
173
};
174
}
175
176
+/**
177
+ * Lock focus within an element.
178
+ * When locked, focus will be restricted to focusable elements within the specified element.
179
+ * If multiple elements are locked, only the last locked element will be effective.
180
+ */
181
export function useLockFocus(
182
lock: boolean,
183
getElement: () => HTMLElement | null,
0 commit comments