CSS selector to locate the element.
Optionaloptions: FocusOptions & { fallbackTabIndex?: boolean }Focus options.
Prevent scrolling when focusing. Defaults to false.
Add tabindex="-1" if element is not focusable. Defaults to false.
OptionalfallbackTabIndex?: booleanAdd tabindex="-1" if element is not focusable. Defaults to false.
true if element was found and focused, false otherwise.
Focuses the first element matching a CSS selector.
Skips disabled elements. Optionally adds a temporary
tabindexfor non-focusable elements.