Letter

Individual letter animation effects

$ npx @hritik-sharmaa/repeat-ui add button-letter
Category
Button
Added
Aug 14, 2025
Version
2.0.0
Packages
None
Flavors
TS · JS · Tailwind · CSS
Live preview
Customize
8px
0.05s
import ButtonLetter from "@/components/repeat-ui/button-letter/preview";

<ButtonLetter>Hover me!</ButtonLetter>

Installation

  1. Run the command

    Adds the files and installs any packages they need. Works with npm, pnpm, yarn and bun.

    $ npx @hritik-sharmaa/repeat-ui add button-letter --variant ts-tailwind
  2. Use it

    The files are in components/repeat-ui/button-letter/.

    import ButtonLetter from "@/components/repeat-ui/button-letter/preview";
    
    export default function Page() {
      return <ButtonLetter />;
    }

Props

PropTypeDefaultDescriptionOptions
childrenReactNode-The button label.-
size"sm" | "md" | "lg""md"Height, padding and font size. Every Repeat UI button shares this scale.sm | md | lg
colorstring"#7c3aed"Background colour.-
textColorstring"#ffffff"Text colour.-
liftnumber8How high each letter hops, in pixels.-
staggernumber0.05Delay between letters, in seconds.-
onClick(event: MouseEvent) => void-Click event handler.-
classNamestring""Extra classes for the button.-

More button

See all