Skip to main content

FocusScope

The FocusScope helps you manage the focus when opening any overlay. If you want to create a custom overlay, you can wrap the content of your overlay in the FocusScope to help you make the overlay accessible and handle focus appropriately.

FocusScopeProps

extends,
NameTypeDefaultDescription
autoFocus?
false

If set to true, the focus scope automatically focuses the first focusable element inside.

contain?
false

If set to true, the focus scope traps the focus inside.

Still have questions?
Find answers in the Dynatrace Community