Search...
K

Wave Button

A button with a wave animation on hover

Documentation

pnpm dlx @t7blocks/cli add wave-button

Usage

import { WaveButton } from "@/components/T7blocks/WaveButton";
export default function Home() {
  return (
    <div className="h-screen flex items-center justify-center">
      <WaveButton />
    </div>
  );
}

Properties

PropertyTypeDefaultDescription
labelstring"Get Started"Text label displayed on the button
onClick() => voidundefinedClick event handler
bgColorstring"#ffffff"Background color of the button
animationDurationnumber500Duration of the animation in milliseconds
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 Icon Slide In Button by Imesh Dilshan

Related resources

Dot Launch Button

Knob Toggle