@twallpaper/react
Version:
🌈 Multicolor gradient wallpaper created algorithmically and shimmers smoothly.
19 lines (18 loc) • 787 B
TypeScript
import React from 'react';
import type { PatternOptions, TWallpaperOptions } from 'twallpaper';
interface TWallpaperProps extends React.HTMLAttributes<HTMLDivElement> {
options: TWallpaperOptions;
}
interface TWallpaperHandlers {
animate(start?: boolean): void;
scrollAnimate(start?: boolean): void;
updateColors(colors: string[]): void;
updateFrametime(fps: number): void;
updatePattern(pattern: PatternOptions): void;
updateTails(tails: number): void;
toNextPosition(onNext?: () => void): void;
}
declare const TWallpaper: React.ForwardRefExoticComponent<TWallpaperProps & React.RefAttributes<TWallpaperHandlers>>;
export { TWallpaper };
export default TWallpaper;
export type { TWallpaperProps, TWallpaperHandlers, TWallpaperOptions, PatternOptions };