r3f-xr-widgets / HoverProps
Interface: HoverProps
Defined in: src/components/Hover.tsx:10
Props for the Hover component
Properties
children()?
optionalchildren: (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?
optionalhoverTargetRef: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?
optionalpulse:PulseConfig
Defined in: src/components/Hover.tsx:28
Optional haptic feedback configuration for XR controllers. When provided, triggers vibration when hovering starts.