From b9dedf28eaf950d13512100f9ebe51b64d2423d0 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 16 Feb 2026 16:24:54 +0530 Subject: [PATCH] fix: forward style and other props to wrapper div --- components/react/lib/Particles.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/components/react/lib/Particles.tsx b/components/react/lib/Particles.tsx index fce7e83..2f1bed9 100644 --- a/components/react/lib/Particles.tsx +++ b/components/react/lib/Particles.tsx @@ -12,16 +12,17 @@ const Particles: FC = (props) => { .load({ id, url: props.url, options: props.options }) .then((c) => { container = c; - props.particlesLoaded?.(c); }); return () => { container?.destroy(); }; - }, [id, props, props.url, props.options]); + }, [id, props.url, props.options]); + + const { id: _ignored, particlesLoaded, options, url, ...rest } = props; - return
; + return
; }; export default Particles;