Ink Bloom Text

Blueprint-outlined display text that bleeds gooey ink wherever the cursor goes. SVG-based with spring-physics blobs, trailing brush strokes, velocity stretch, gradient fills, and an optional idle-roam mode for touch screens and previews. Honors prefers-reduced-motion.

Installation

  1. 1

    Install the component:

    npx shadcn@latest add https://ui.amines.fun/registry/ink-bloom-text.json
  2. 2

    Usage:

    jsx

    app/page.jsx

    <InkBloomText  as="h1"  text="INK BLOOM"  className="w-full max-w-4xl text-neutral-900"  fill={["#18181b", "#6d28d9", "#ea580c"]}  idleRoam/>

Props

PropTypeDefaultDescriptionRequired
textstring"HERON AI"The words to render.No
fontFamilystringui-sans-serif system-ui sans-serif stackAny CSS font-family, including a next/font variable like var(--font-display).No
fontWeightnumber800Font weight. Thicker fonts give the ink more area to fill.No
letterSpacingnumber0.04Letter spacing in em.No
strokeWidthnumber1Blueprint outline thickness in px; stays crisp at any size.No
strokeOpacitynumber0.85Outline opacity from 0 to 1.No
guidesbooleanfalseShow blueprint registration "+" marks at the corners and center.No
guideOpacitynumber0.4Opacity of the registration marks.No
fillstring | string[]"currentColor"Ink color as any CSS color, or an array of colors for a left-to-right gradient. Uses currentColor by default so a Tailwind text-* class controls it.No
haloColorstring"currentColor"Color of the rough, lighter splash around the ink.No
haloOpacitynumber0.18Halo opacity; set 0 to hide the halo entirely.No
cursorColorstring"#ff3b00"Color of the square cursor marker.No
brushSizenumber0.75Ink blob radius relative to text height. 0.4 is small, 1.2 is huge.No
haloSizenumber1.25Halo radius as a multiple of the ink radius. 1 disables the spill.No
trailnumber4Extra blobs that lag behind the cursor, clamped to 0-8.No
trailLagnumber0.6How sluggish each trailing blob is. 0 glues them together.No
trailShrinknumber0.1How much smaller each trailing blob gets.No
stiffnessnumber260Spring stiffness. Higher values snap the ink to the cursor faster.No
dampingnumber26Spring damping. Higher is calmer; lower adds jelly.No
bouncenumber0.4Blob springiness when popping in and out, 0-1.No
pressScalenumber1.3How much the blob swells while the pointer is held down.No
velocityStretchnumber0.35Blob growth when moving fast. 0 disables it.No
idleRoambooleanfalseInk drifts on its own when nobody is hovering — useful on touch screens and in previews.No
roughnessnumber1Edge texture: 0 is a smooth goo, 1 is torn paper, 2 is wild splatter.No
grainnumber1Texture detail. Higher values give finer, noisier edges.No
gooeynessnumber1How strongly nearby blobs melt into each other.No
wobblenumber0.6How much the ink edges boil over time. 0 freezes them.No
wobbleSpeednumber1Speed of the edge boiling.No
showCursorbooleanfalseShow a square marker that tracks the cursor inside the text area.No
cursorSizenumber0.08Cursor marker size relative to text height.No
showCrosshairbooleanfalseShow faint dashed crosshair lines through the cursor while hovering.No
entrance"wipe" | "fade" | "none""wipe"Mount animation: outline draws in left to right, fades in, or appears instantly.No
entranceDurationnumber1.3Entrance animation duration in seconds.No
entranceDelaynumber0.1Entrance animation delay in seconds.No
asstring"div"Wrapper element, e.g. "h1" or "p".No
classNamestringundefinedTailwind classes for the wrapper. Controls width (the text fills it) and color via text-* classes since ink uses currentColor.No
styleReact.CSSPropertiesundefinedInline styles for the wrapper.No
...restHTMLAttributesundefinedAdditional native attributes (id, data-*, aria-*) are forwarded to the wrapper.No