Files
formbricks/packages/ui/components/Confetti.tsx
T
Matti Nannt 60f7103198 Revert & gradually use updated files (#280)
* revert to last working version

* add updated ui components

* update formbricks-com components

* apply prettier formatting

* update apps/web files
2023-05-10 00:20:43 +02:00

16 lines
413 B
TypeScript

import { useWindowSize } from "react-use";
import ReactConfetti from "react-confetti";
type ConfettiProps = {
colors?: string[];
};
export const Confetti: React.FC<ConfettiProps> = ({
colors = ["#00C4B8", "#eee"],
}: {
colors?: string[];
}) => {
const { width, height } = useWindowSize();
return <ReactConfetti width={width} height={height} colors={colors} numberOfPieces={400} recycle={false} />;
};