UNPKG

vault66-crt-effect

Version:

A customizable CRT visual effect component for React

23 lines (22 loc) 940 B
import React from "react"; interface CRTEffectProps { enabled?: boolean; sweepDuration?: number; sweepThickness?: number; sweepStyle?: "classic" | "soft"; scanlineOpacity?: number; scanlineColor?: string; enableScanlines?: boolean; enableSweep?: boolean; theme?: "green" | "amber" | "blue" | "custom"; enableGlow?: boolean; glowColor?: string; enableEdgeGlow?: boolean; edgeGlowColor?: string; edgeGlowSize?: number; enableFlicker?: boolean; scanlineOrientation?: "horizontal" | "vertical"; children: React.ReactNode; } declare const CRTEffect: ({ enabled, sweepDuration, sweepThickness, sweepStyle, scanlineOpacity, scanlineColor, enableScanlines, enableSweep, theme, enableGlow, glowColor, enableEdgeGlow, edgeGlowColor, edgeGlowSize, enableFlicker, scanlineOrientation, children, }: CRTEffectProps) => import("react/jsx-runtime").JSX.Element; export default CRTEffect;