Blazorise Focus Trap API

Explore the Blazorise Focus Trap API reference for parameters, events, methods, and related types.

For examples and usage guidance, see the Focus Trap documentation.

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.