'use client';
import { forwardRef, HTMLAttributes } from 'react';
import styles from './flicker-text.module.css';
export interface FlickerTextProps extends HTMLAttributes {
/** The text to display */
children: string;
/** Flicker speed: slow, normal, fast, erratic */
speed?: 'slow' | 'normal' | 'fast' | 'erratic';
/** Minimum opacity during flicker */
minOpacity?: number;
/** Flicker only on hover */
hoverOnly?: boolean;
}
export const FlickerText = forwardRef(
(
{
children,
speed = 'normal',
minOpacity = 0,
hoverOnly = false,
className,
style,
...props
},
ref
) => {
return (
{children}
);
}
);
FlickerText.displayName = 'FlickerText';
export default FlickerText;