Search...
K

Bouncy Button

A button with a bouncy animation on hover

Documentation

pnpm dlx @t7blocks/cli add bouncy-button

Usage

import { BouncyButton } from "@/components/T7blocks/BouncyButton";

export default function Home() {
  return (
    <div className="h-screen flex items-center justify-center">
      <BouncyButton />
    </div>
  );
}

Properties

PropertyTypeDefaultDescription
textstring"Join Discord"Text label displayed on the button
onClick() => voidundefinedClick event handler
primaryColorstring"#4c2c99ff"Background color of the button
iconReactNodeundefinedIcon to be displayed on the button
widthnumber"168px"Width of the button
heightnumber52Height of the button
roundnessstring"26px"Border-radius for the button
classNamestring""Additional CSS classes

Inspiration

This component is inspired by Bouncy Button by Soyeb

Related resources

Dot Launch Button

Knob Toggle