word-pull-up-text
eldoraui/word-pull-up-textFreeComponent
A word pull up text component.
Live preview
live · rendered by the registry
Rendered by eldoraui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://eldoraui.site/r/word-pull-up-text.jsonSource
1"use client"23import clsx from "clsx"4import { motion } from "motion/react"56interface WordPullUpTextProps {7 text?: string8 className?: string9}1011export const WordPullUpText: React.FC<WordPullUpTextProps> = ({12 text = "",13 className = "",14}) => {15 const container = {16 hidden: { opacity: 0 },17 show: {18 opacity: 1,19 transition: {20 staggerChildren: 0.2,21 },22 },23 }2425 const item = {26 hidden: { y: 20, opacity: 0 },27 show: { y: 0, opacity: 1 },28 }2930 return (31 <motion.h132 variants={container}33 initial="hidden"34 animate="show"35 className={clsx(36 "font-display text-center font-bold drop-shadow-sm",37 "text-4xl md:text-5xl lg:text-6xl xl:text-7xl",38 "tracking-[-0.02em]",39 "md:leading-[4rem] lg:leading-[4.5rem] xl:leading-[5rem]",40 className41 )}42 >43 {text.split(" ").map((word, i) => (44 <motion.span45 key={i}46 variants={item}47 style={{ display: "inline-block", paddingRight: "15px" }}48 >49 {word === "" ? <span> </span> : word}50 </motion.span>51 ))}52 </motion.h1>53 )54}
What it pulls in
npm packages
Files it writes
More from eldoraui
All 115 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| animated-badgeanimated-badge | eldoraui | Components | Free | 2 deps | |
| animated-frameworksanimated-frameworks | eldoraui | Components | Free | 2 deps | |
| animated-grid-patternanimated-grid-pattern | eldoraui | Components | Free | 3 deps | |
| animated-listanimated-list | eldoraui | Components | Free | 1 dep | |
| animated-shiny-buttonanimated-shiny-button | eldoraui | Components | Free | 1 dep | |
| blur-in-textblur-in-text | eldoraui | Components | Free | 3 deps | |
| browserbrowser | eldoraui | Components | Free | 2 deps | |
| card-flip-hovercard-flip-hover | eldoraui | Components | Free | 1 dep |
