Ariakit
/

FocusTrapRegion

Renders a focus trap region element.

Code examples

<Button>click me</Button>
<Button>trap focus</Button>
<Button disabled>disabled Button</Button>

Optional Props


enabled

boolean | undefined = false

If true, it will trap the focus in the region.

Follow updates

Join 1,000+ subscribers and receive monthly updates with the latest improvements on API Reference.

Read latest issue

No Spam. Unsubscribe at any time.