mhsf-dev/src/components/ClientFadeIn.tsx

19 lines
288 B
TypeScript
Raw Normal View History

2024-08-18 01:15:27 -05:00
"use client";
import FadeIn from "react-fade-in";
export default function ClientFadeIn({
children,
delay = 0,
2024-08-24 12:37:08 -05:00
id,
2024-08-18 01:15:27 -05:00
}: {
children: React.ReactNode;
delay?: number;
2024-08-24 12:37:08 -05:00
id?: string;
2024-08-18 01:15:27 -05:00
}) {
2024-08-24 12:37:08 -05:00
return (
<div id={id}>
<FadeIn delay={delay}>{children}</FadeIn>
</div>
);
2024-08-18 01:15:27 -05:00
}