Reka UI logoReka
backdrop
PropDefaultType
as
'div'
AsTag | Component

The element or component this component should render as. Can be overwritten by asChild.

asChild
boolean

Change the default rendered element for the one passed as a child, merging their props and behavior.

Read our Composition guide for more details.

loop
false
boolean

When true, tabbing from last item will focus first tabbable and shift+tab from first item will focus last tababble.

trapped
false
boolean

When true, focus cannot escape the focus scope via keyboard, pointer, or a programmatic focus.

EmitPayload
mountAutoFocus
[event: Event]

Event handler called when auto-focusing on mount. Can be prevented.

unmountAutoFocus
[event: Event]

Event handler called when auto-focusing on unmount. Can be prevented.