UNPKG

lightswind

Version:

A collection of beautifully crafted React Components, Blocks & Templates for Modern Developers. Create stunning web applications effortlessly by using our 160+ professional and animated react components.

30 lines (29 loc) 1.28 kB
/** * Valid blur sizes supported by Tailwind CSS. */ export type BlurSize = "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl"; /** * @typedef {Object} SmokeyBackgroundProps * @property {BlurSize} [backdropBlurAmount] - The size of the backdrop blur to apply. * Valid values are "none", "sm", "md", "lg", "xl", "2xl", "3xl". * Defaults to "sm" if not provided. * @property {string} [color] - The color of the shader's glow in hexadecimal format (e.g., "#RRGGBB"). * Defaults to "#471CE2" (purple) if not provided. * @property {string} [className] - Additional CSS classes to apply to the container div. */ interface SmokeyBackgroundProps { backdropBlurAmount?: string; color?: string; className?: string; } /** * A React component that renders an interactive WebGL shader background. * The background features a turbulent, glowing wave pattern that responds to mouse movement. * An optional backdrop blur can be applied over the shader. * * @param {SmokeyBackgroundProps} props - The component props. * @returns {JSX.Element} The rendered SmokeyBackground component. */ export declare function SmokeyBackground({ backdropBlurAmount, color, // Default purple color className, }: SmokeyBackgroundProps): React.ReactNode; export default SmokeyBackground;