Ink Bloom TextInk 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
Install the component:
npx shadcn@latest add https://ui.amines.fun/registry/ink-bloom-text.json - 2
Usage:
jsxapp/page.jsx
1<InkBloomText2 as="h1"3 text="INK BLOOM"4 className="w-full max-w-4xl text-neutral-900"5 fill={["#18181b", "#6d28d9", "#ea580c"]}6 idleRoam7/>
Props
| Prop | Type | Default | Description | Required |
|---|---|---|---|---|
| text | string | "HERON AI" | The words to render. | No |
| fontFamily | string | ui-sans-serif system-ui sans-serif stack | Any CSS font-family, including a next/font variable like var(--font-display). | No |
| fontWeight | number | 800 | Font weight. Thicker fonts give the ink more area to fill. | No |
| letterSpacing | number | 0.04 | Letter spacing in em. | No |
| strokeWidth | number | 1 | Blueprint outline thickness in px; stays crisp at any size. | No |
| strokeOpacity | number | 0.85 | Outline opacity from 0 to 1. | No |
| guides | boolean | false | Show blueprint registration "+" marks at the corners and center. | No |
| guideOpacity | number | 0.4 | Opacity of the registration marks. | No |
| fill | string | 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 |
| haloColor | string | "currentColor" | Color of the rough, lighter splash around the ink. | No |
| haloOpacity | number | 0.18 | Halo opacity; set 0 to hide the halo entirely. | No |
| cursorColor | string | "#ff3b00" | Color of the square cursor marker. | No |
| brushSize | number | 0.75 | Ink blob radius relative to text height. 0.4 is small, 1.2 is huge. | No |
| haloSize | number | 1.25 | Halo radius as a multiple of the ink radius. 1 disables the spill. | No |
| trail | number | 4 | Extra blobs that lag behind the cursor, clamped to 0-8. | No |
| trailLag | number | 0.6 | How sluggish each trailing blob is. 0 glues them together. | No |
| trailShrink | number | 0.1 | How much smaller each trailing blob gets. | No |
| stiffness | number | 260 | Spring stiffness. Higher values snap the ink to the cursor faster. | No |
| damping | number | 26 | Spring damping. Higher is calmer; lower adds jelly. | No |
| bounce | number | 0.4 | Blob springiness when popping in and out, 0-1. | No |
| pressScale | number | 1.3 | How much the blob swells while the pointer is held down. | No |
| velocityStretch | number | 0.35 | Blob growth when moving fast. 0 disables it. | No |
| idleRoam | boolean | false | Ink drifts on its own when nobody is hovering — useful on touch screens and in previews. | No |
| roughness | number | 1 | Edge texture: 0 is a smooth goo, 1 is torn paper, 2 is wild splatter. | No |
| grain | number | 1 | Texture detail. Higher values give finer, noisier edges. | No |
| gooeyness | number | 1 | How strongly nearby blobs melt into each other. | No |
| wobble | number | 0.6 | How much the ink edges boil over time. 0 freezes them. | No |
| wobbleSpeed | number | 1 | Speed of the edge boiling. | No |
| showCursor | boolean | false | Show a square marker that tracks the cursor inside the text area. | No |
| cursorSize | number | 0.08 | Cursor marker size relative to text height. | No |
| showCrosshair | boolean | false | Show 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 |
| entranceDuration | number | 1.3 | Entrance animation duration in seconds. | No |
| entranceDelay | number | 0.1 | Entrance animation delay in seconds. | No |
| as | string | "div" | Wrapper element, e.g. "h1" or "p". | No |
| className | string | undefined | Tailwind classes for the wrapper. Controls width (the text fills it) and color via text-* classes since ink uses currentColor. | No |
| style | React.CSSProperties | undefined | Inline styles for the wrapper. | No |
| ...rest | HTMLAttributes | undefined | Additional native attributes (id, data-*, aria-*) are forwarded to the wrapper. | No |