Refactor RotatingText component props and improve type definitions

This commit is contained in:
David Haz
2025-07-12 16:33:32 +03:00
parent b8bc22797f
commit 50532846ba
2 changed files with 112 additions and 90 deletions

View File

@@ -17,7 +17,7 @@
</motion.span>
<RotatingText
:texts="words"
mainClassName="px-2 py-0.5 bg-[#27FF64] text-white overflow-hidden flex justify-center rounded-lg sm:py-1 md:py-2 md:px-3"
mainClassName="px-2 py-0.5 bg-[#27FF64] text-[#222] overflow-hidden flex justify-center rounded-lg sm:py-1 md:py-2 md:px-3"
staggerFrom="last"
:initial="{ y: '100%' }"
:animate="{ y: 0 }"