BadtzUIBeta
Docs
Shuffle Button

Shuffle Button

A dynamic button that shuffles the characters of its text when hovered over, creating an engaging animation.

Installation

pnpm dlx shadcn@latest add to-setup

Usage

import { ShuffleButton } from "@/components/ui/shuffle-button";
<ShuffleButton>Hover Me</ShuffleButton>

Props

shuffle-button props.

PropTypeDescriptionDefault
childrenstringThe text to display and animate inside the button.-
classNamestringAdditional custom classes for styling.-
durationnumberDuration of the character shuffle animation (in seconds).1
Confetti Button