interface DrawerPanelFocusTrapObject {
    aria-labelledby?: string;
    elementToFocusOnExpand?: string | HTMLElement | SVGElement;
    enabled?: boolean;
}

Properties

aria-labelledby?: string

One or more id's to use for the drawer panel content's accessible label.

elementToFocusOnExpand?: string | HTMLElement | SVGElement

The element to focus when the drawer panel content expands. By default the first focusable element will receive focus. If there are no focusable elements, the panel itself will receive focus.

enabled?: boolean

Enables a focus trap on the drawer panel content. This will also automatically handle focus management when the panel expands and when it collapses. Do not pass this prop if the isStatic prop on the drawer component is true.