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.
42 lines • 1.56 kB
TypeScript
import React from "react";
import { type VariantProps } from "class-variance-authority";
type ConfettiOptions = {
particleCount?: number;
spread?: number;
startVelocity?: number;
decay?: number;
gravity?: number;
drift?: number;
ticks?: number;
origin?: {
x?: number;
y?: number;
};
colors?: string[];
shapes?: string[];
scalar?: number;
zIndex?: number;
disableForReducedMotion?: boolean;
};
declare global {
interface Window {
confetti?: (options?: ConfettiOptions) => void;
}
}
declare const confettiButtonVariants: (props?: ({
variant?: "link" | "outline" | "default" | "secondary" | "ghost" | "gradient" | null | undefined;
size?: "default" | "sm" | "lg" | "icon" | "xl" | "pill" | null | undefined;
animation?: "none" | "scale" | "bounce" | "glow" | "pulse" | "shake" | "expand" | null | undefined;
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
export interface ConfettiButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof confettiButtonVariants> {
asChild?: boolean;
icon?: React.ReactNode;
iconPosition?: "left" | "right";
loading?: boolean;
confettiOptions?: ConfettiOptions;
autoConfetti?: boolean;
triggerOnHover?: boolean;
}
declare const ConfettiButton: React.ForwardRefExoticComponent<ConfettiButtonProps & React.RefAttributes<HTMLButtonElement>>;
export { ConfettiButton, confettiButtonVariants };
//# sourceMappingURL=confetti-button.d.ts.map