fn
getTabbableEdges
v0.0.5testedReturns the first and last tabbable elements inside a container
Signature
ts
export function getTabbableEdges(container: HTMLElement):{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
container | HTMLElement | — |
Returns
{ first: HTMLElement | undefined; last: HTMLElement | undefined; }