generated:catalog.entry.cdk-focus-trap.title
generated:catalog.entry.cdk-focus-trap.description
@xngui/cdk/focus-trapimport { XFocusTrapDirective } from '@xngui/cdk/focus-trap';chrome:demo.section
chrome:demo.preview
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