react-together
Version:
A library to seamlessly add real-time multi-user interaction to your React app!
11 lines (9 loc) • 417 B
TypeScript
import { Cursor } from '../../hooks/useCursors';
export interface UserCursorOptions {
transitionDuration?: number;
getUserColor?: (userId: string) => string;
}
export interface UserCursorProps extends Cursor, UserCursorOptions {
userId: string;
}
export default function UserCursor({ userId, percentX, pageY, transitionDuration, getUserColor }: UserCursorProps): import("react/jsx-runtime").JSX.Element;