Skip to main content
Version: Next

RovingFocusGroup API

import { RovingFocusGroup } from '@editora/ui-react';

Props​

PropTypeDescription
activeAttributestring | null
containerParentNode | null
directItemSelectorstring
itemSelectorstring
loopboolean
onActiveItemChange(detail: RovingFocusActiveItemDetail) => void

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

Element: <ui-roving-focus-group>​

RovingFocusGroup renders the ui-roving-focus-group custom element from @editora/ui-core, which can also be used without React.

Attributes: active-attribute, direct-item-selector, item-selector, loop

Events: active-item-change