chrome:shell.skip

generated:catalog.entry.cdk-focus-trap.title

generated:catalog.entry.cdk-focus-trap.description

@xngui/cdk/focus-trap
import { XFocusTrapDirective } from '@xngui/cdk/focus-trap';

chrome:demo.section

chrome:demo.preview

demo-preview:hints.category.assistive:
TipSR
import { XFocusTrapDirective } from '@xngui/cdk/focus-trap';
 
@if (trapOpen()) {
<div [xFocusTrap]="true" [xFocusTrapAutoFocus]="true">
<button>First<button>
<button>Middle<button>
<button (click)="closeTrap()">Close<button>
<div>
}

chrome:demo.events.title

chrome:demo.events.empty