spacesvr-websessions
Version:
A standardized reality for future of the 3D Web
11 lines (10 loc) • 367 B
TypeScript
import { ReactNode } from "react";
import { Intersection, Raycaster } from "three";
export declare type InteractableProps = {
onClick?: (e: Intersection) => void;
onHover?: () => void;
onUnHover?: () => void;
raycaster?: Raycaster;
children: ReactNode | ReactNode[];
};
export declare function Interactable(props: InteractableProps): JSX.Element;