R
fn

getTabbableEdges

v0.0.5tested

Returns the first and last tabbable elements inside a container

Signature

ts
export function getTabbableEdges(container: HTMLElement):{ ... }

Parameters

ParameterTypeDescription
containerHTMLElement

Returns

{ first: HTMLElement | undefined; last: HTMLElement | undefined; }