MudBlazor

MudFocusTrap API

Properties

Name Type Default Description
ChildContent
RenderFragment

null

Child content of the component.
DefaultFocus
DefaultFocus

DefaultFocus.FirstChild

Defines on which element to set the focus when the component is created or enabled. When DefaultFocus.Element is used, the focus will be set to the FocusTrap itself, so the user will have to press TAB key once to focus the first tabbable element.
Disabled
Boolean

False

If true, the focus will no longer loop inside the component.
Inherited from MudComponentBase
Class
String

null

User class names, separated by space.
Style
String

null

User styles, applied on top of the component's own classes and styles.
Tag
Object

null

Use Tag to attach any user data object to the component for your convenience.
UserAttributes
Dictionary<String, Object>

UserAttributes carries all attributes you add to the component that don't match any of its parameters. They will be splatted onto the underlying HTML tag.

Methods

Name Parameters Return Description
Dispose()
An error has occurred. This application may no longer respond until reloaded. Reload 🗙