Ink Reveal

New

Brush the pointer over an image to paint its colours in

$ npx @hritik-sharmaa/repeat-ui add card-ink-reveal
Category
Card
Added
Nov 1, 2026
Version
1.0.0
Packages
None
Flavors
TS · JS · Tailwind · CSS
Live preview
Mountains above the cloudsMove to reveal
Customize
420px
300px
70px
0.015
24px
import CardInkReveal from "@/components/repeat-ui/card-ink-reveal/preview";

<CardInkReveal hint="Move to reveal" />

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 card-ink-reveal --variant ts-tailwind
  2. Use it

    The files are in components/repeat-ui/card-ink-reveal/.

    import CardInkReveal from "@/components/repeat-ui/card-ink-reveal/preview";
    
    export default function Page() {
      return <CardInkReveal />;
    }

Props

PropTypeDefaultDescriptionOptions
srcstringMountain photoImage URL.-
altstring""Image description for screen readers.-
widthnumber420Width in pixels.-
heightnumber300Height in pixels.-
brushSizenumber70Brush diameter in pixels.-
mode"grayscale" | "blur" | "dim""grayscale"How the image looks before it is painted.grayscale | blur | dim
fadebooleantrueLet the paint dry back to the muted image.-
fadeSpeednumber0.015How fast the paint dries.-
radiusnumber24Corner radius in pixels.-
hintstring"Move to reveal"Label shown until the first stroke; empty hides it.-
classNamestring""Extra classes for the root element.-

More card

See all