react-atmospheres
Version:
A lightweight wrapper to add seasonal, themed visual effects in your React app.
15 lines (14 loc) • 468 B
TypeScript
import React from 'react';
export interface HeartProps {
/** Reference to the container element */
containerRef: React.RefObject<HTMLElement>;
/** Color of the heart fill */
color?: string;
/** outline color of the heart */
outlineColor?: string;
/** Maximum number of hearts to display */
maxHearts?: number;
/** Speed factor for the hearts */
speedFactor?: number;
}
export declare const HeartAnimation: React.FC<HeartProps>;