LogoLogoLogoLogoPaceKit
Components
  • Introduction
  • Installation
  • AI Toolkit
  • Modal Selector
  • Modal Ability Selector
  • AI Suggestions
  • Response Writer
  • Token Counter
  • Text Effects
  • Reveal Text
  • Scramble Text
  • Squash Text
  • Bouncing Text
  • Draw Line Text
  • Mouse Wave Text
  • Dot Animations
  • Dot Loader
  • Dot Flow
  • Flow Builder
  • Buttons
  • Text Fall Button
  • Spring Button
  • Fillable Button
  • Utility & Misc
  • Swap
  • Animated Stack
  • Layered Stack
  • Gradient Shadow
  • GitHub Star Counter
  • Profile Peek
  • Flip Reveal
  • Special Cases
  • Reveal On Scroll
  • Stagger on Scroll
  • Liquid Cursor
  • Liquid Glass
  • Tilt Card

Fillable Button

PreviousNext

A button with a liquid fill effect that follows the cursor on hover.

Examples

Sizes

Default

Outline

Destructive

Secondary

Ghost

Link

Usage

index.tsx
import { FillableButton } from "@/components/gsap/fillable-button"export default function Home() {  return (      <FillableButton>Click me</FillableButton>  )}

Customizing

Custom Overlay Color

Use overlayClassname to replace the fill color with any Tailwind background class.

Icon

With Icon

Remember to add the data-icon="inline-start" or data-icon="inline-end" attribute to the icon for the correct spacing.

Border Radius

Loading

Render a <Spinner /> component inside the button to show a loading state. Remember to add the data-icon="inline-start" or data-icon="inline-end" attribute to the spinner for the correct spacing.

Props

FillableButton

PropTypeDefault
variant"default" | "outline" | "destructive" | "secondary" | "ghost" | "link""default"
size"default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg""default"
overlayClassnamestring—
Created by @abnerjs | Inspired by "Get GSAP" Button on GSAP website
Spring ButtonSwap

Built by Denish at PaceKit

On This Page

ExamplesSizesDefaultOutlineDestructiveSecondaryGhostLinkUsageCustomizingCustom Overlay ColorIconWith IconBorder RadiusLoadingPropsFillableButton

Better Auth Starter

Ship your SaaS faster with a solid starting point for TanStack Start and Next.js

Launch Now