Skip to content

r3f-xr-widgets / HoverProps

Interface: HoverProps

Defined in: src/components/Hover.tsx:10

Props for the Hover component

Properties

children()?

optional children: (hovered) => ReactNode

Defined in: src/components/Hover.tsx:15

Render function that receives the current hover state

Parameters

hovered

boolean

Whether the element is currently being hovered

Returns

ReactNode


hoverTargetRef?

optional hoverTargetRef: RefObject<Object3D<Object3DEventMap> | null>

Defined in: src/components/Hover.tsx:21

Optional ref to a specific Object3D to use as the hover target. If not provided, the component creates its own group as the hover target.


pulse?

optional pulse: PulseConfig

Defined in: src/components/Hover.tsx:28

Optional haptic feedback configuration for XR controllers. When provided, triggers vibration when hovering starts.

See

PulseConfig

Released under the MIT License.