Blazorise FocusTrap component

The focus trap component allows to restrict TAB key navigation inside the component.

API

Parameters

ParameterDefaultType
Activefalsebool

If true the TAB focus will be activated.
ChildContentnullRenderFragment

Defines the content rendered inside the focus trap.

Methods

MethodReturnParameters
SetFocusTask—

Sets the focus trap.
NotifyFocusableComponentInitializedvoidIFocusableComponent focusableComponent

Notifies the container component that its IFocusableComponent is initialized.
NotifyFocusableComponentRemovedvoidIFocusableComponent focusableComponent

Notifies the container component that its IFocusableComponent is removed.