Wiggle

Playful wiggle animation on hover

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

<ButtonWiggle>Wiggle me!</ButtonWiggle>

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-wiggle --variant ts-tailwind
  2. Use it

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

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

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"#facc15"Background colour.-
fillColorstring"#3b82f6"Colour that rises on hover.-
textColorstring"#0a0a0a"Text colour.-
borderColorstring"#0a0a0a"Outline colour.-
onClick(event: MouseEvent) => void-Click event handler.-
classNamestring""Extra classes for the button.-

More button

See all