Fill

Color fill animation from left to right

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

<ButtonFill>Fill</ButtonFill>

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

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

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

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"#ff7675"Outline, text and fill colour.-
textColorstring"#ffffff"Text colour once filled.-
durationnumber0.4Fill time in seconds.-
onClick(event: MouseEvent) => void-Click event handler.-
classNamestring""Extra classes for the button.-

More button

See all