Blazorise FocusTrap component

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

API

Parameters

Parameter Description TypeDefault
Active

If true the TAB focus will be activated.

boolfalse
ChildContent

Defines the content rendered inside the focus trap.

RenderFragmentnull

Methods

Method DescriptionReturnParameters
SetFocus Sets the focus trap. Task
NotifyFocusableComponentInitialized Notifies the container component that its IFocusableComponent is initialized. voidIFocusableComponent focusableComponent
NotifyFocusableComponentRemoved Notifies the container component that its IFocusableComponent is removed. voidIFocusableComponent focusableComponent
On this page