function getFocusableElements < E extends Element = Element > ( el ) { return [ ... el . querySelectorAll < E > ( 'button, [href]:not([tabindex="-1"]), input, select, textarea, [tabindex]:not([tabindex="-1"]), [role=slider]' ) , ] ; } export default getFocusableElements ;