retro-react
Version:
A React component library for building retro-style websites
38 lines (37 loc) • 931 B
TypeScript
import React from 'react';
export interface CRTProps extends React.HTMLAttributes<HTMLDivElement> {
/**
* The content to display inside the CRT monitor
*/
children: React.ReactNode;
/**
* CRT monitor color scheme
* @default 'green'
*/
phosphor?: 'green' | 'amber' | 'white' | 'blue';
/**
* Enable scanline effect
* @default true
*/
scanlines?: boolean;
/**
* Enable screen curvature effect
* @default true
*/
curvature?: boolean;
/**
* Enable flicker effect
* @default false
*/
flicker?: boolean;
/**
* Intensity of the glow effect (0-1)
* @default 0.5
*/
glowIntensity?: number;
}
/**
* CRT component provides an authentic retro CRT monitor experience
* with phosphor glow, scanlines, and curvature effects.
*/
export declare const CRT: React.FC<CRTProps>;