Interface: FocusGroupItemProps
Defined in: packages/sdk/src/use-focus-group.ts:80
Props useFocusGroup returns per item — spread onto item index. They carry the single-tab-stop tabIndex, the key/focus handlers, and the data-focus-* markers the host's CSS styles into the keyboard ring. Your own role/aria-*/onClick/className sit alongside them.
Properties
tabIndex
tabIndex: number;Defined in: packages/sdk/src/use-focus-group.ts:81
ref
ref: (el) => void;Defined in: packages/sdk/src/use-focus-group.ts:82
Parameters
el
HTMLElement | null
Returns
void
onKeyDown
onKeyDown: (e) => void;Defined in: packages/sdk/src/use-focus-group.ts:83
Parameters
e
KeyboardEvent
Returns
void
onFocus
onFocus: () => void;Defined in: packages/sdk/src/use-focus-group.ts:84
Returns
void
onPointerDown
onPointerDown: (e) => void;Defined in: packages/sdk/src/use-focus-group.ts:85
Parameters
e
PointerEvent
Returns
void
data-focus-item
data-focus-item: "";Defined in: packages/sdk/src/use-focus-group.ts:87
Marks every group item, so the host can reset the native focus outline.
data-focus-visible?
optional data-focus-visible?: "";Defined in: packages/sdk/src/use-focus-group.ts:92
Present on the active item only while focus is keyboard-driven — the host's CSS keys the ring on it. Absent for pointer focus, matching :focus-visible.