Layers

Multi-layered depth with shadow effects

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

<ButtonLayers>Hover me!</ButtonLayers>

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

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

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

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"#facc15"Front layer colour.-
middleColorstring"#2dd4bf"Middle layer colour.-
backColorstring"#3b82f6"Back layer colour.-
textColorstring"#0a0a0a"Text colour.-
borderColorstring"#0a0a0a"Outline colour.-
onClick(event: MouseEvent) => void-Click event handler.-
classNamestring""Extra classes for the button.-

More button

See all