A CSS selector string or an HTMLElement representing the container.
An array of focusable elements.
This utility is useful for accessibility purposes, allowing you to easily find and manage focusable elements within a specific part of the DOM. It can be used in scenarios such as modal dialogs, dropdowns, or any component where you need to control focus behavior.
Returns an array of focusable elements within a given container. Focusable elements include links, buttons, textareas, inputs, selects, and elements with a positive tabindex.