holographic-sticker
Version:
A React component library for creating holographic sticker effects
22 lines (21 loc) • 677 B
TypeScript
import React, { ReactNode } from 'react';
interface HologramContextType {
isActive: boolean;
isExploded: boolean;
setIsExploded: (exploded: boolean) => void;
pointerPos: {
x: string;
y: string;
};
showGlare: boolean;
cardRef: React.RefObject<HTMLElement | null>;
minimapRef: React.RefObject<HTMLDivElement | null>;
sceneRef: React.RefObject<HTMLDivElement | null>;
rootRef: React.RefObject<HTMLDivElement | null>;
}
export declare const useHologram: () => HologramContextType;
interface HologramProviderProps {
children: ReactNode;
}
export declare const HologramProvider: React.FC<HologramProviderProps>;
export {};