# XWUIFocusTrap

Accessibility utility - restrict keyboard focus within a container (modals, drawers).

## Basic Usage

Trap focus inside a marked region.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: Trap focus inside a marked region.
```

## Initial focus target

On activation, focus jumps straight to a chosen element via the initialFocus selector.

```example
file: examples/InitialFocus.ts
html: examples/InitialFocus.html
title: Initial focus target
description: On activation, focus jumps to a chosen element via the initialFocus selector.
```

## Toggle the trap

Start inactive, then activate and deactivate the trap imperatively from outside controls.

```example
file: examples/Toggle.ts
html: examples/Toggle.html
title: Toggle the trap
description: Activate and deactivate the trap imperatively from outside controls.
```

```api
```
