Ink Bleed Heading

A heading that arrives like ink on wet paper, word by word.

Category
Creative
Access
Free with an account
Source
150 lines · one file
States
3 drawn

The decision inside it

The words stay text, and the filter comes off

The bleed is an SVG displacement filter over real type, so the heading is selectable and read as one sentence from the first frame. Once a word is sharp its filter is removed, so a finished heading costs nothing on scroll. Reduced motion shows it settled.

When to use it

Use Ink Bleed Heading for one editorial headline that should arrive with some ceremony: the words bleed in like ink. One per page; for a bolder, faster entrance use Slice Reveal Title.

Installation

How you get it

Paste this into Claude Code, Cursor, Codex or any coding agent. It installs the file and uses it as it is, instead of writing a new one.

Use Liro's Ink Bleed Heading for this.
Install it: npx shadcn@latest add @liro/ink-bleed-heading
(the @liro registry is set up in components.json, with LIRO_KEY in .env.local)
Import it from @/components/ui/ink-bleed-heading.
Do not rewrite or restyle it. Pass my data through its props
and keep its built-in states.

For the full brief with every prop and the mistakes assistants usually make, use Copy prompt above. Free components install through the @liro registry with your CLI token: see the Namespaced tab.

Usage

components/article-title.tsx
import { InkBleedHeading } from "@/components/ui/ink-bleed-heading";

export function ArticleTitle() {
  return (
    <InkBleedHeading as="h1" className="font-serif text-6xl">
      Every good product starts as a sketch.
    </InkBleedHeading>
  );
}

API reference

“Copy prompt” above puts a full brief on your clipboard, install command, dependencies, props, and the mistakes an assistant usually makes with this component.

Props

Read from the component’s own TypeScript interface when the site is built, so this table cannot drift from the file you install.

TypeNotes
childrenstring YesThe heading text.
asHeadingTag NoThe element to render. Default `h2`.
durationnumber NoSeconds for one word to settle. Default 1.1.
staggernumber NoSeconds between words. Default 0.09.
bleednumber NoHow ragged the bloom starts, 0 to 1. Default 0.45.
trigger"view" | "mount" NoStart when it scrolls into view, or as soon as it mounts. Default `view`.

Dependencies

npm packages

clsxframer-motiontailwind-merge

Liro foundations, installed alongside it

liro-theme

States

All of them are drawn by the component. None is left for you to design.

  • Bleeding in
  • Settled
  • Reduced motion

Accessibility

  • Keyboard reachable throughout, in visual order
  • Focus trapped in overlays, Escape closes them
  • Focus returns to whatever opened it
  • Live regions announce what changed, not that something did
  • Honours prefers-reduced-motion

Responsive behavior

  • Sizes to its container, not the viewport
  • Usable from 320px up
  • Pointer-based interaction, so trackpad and touch both work
  • No hover-only affordances