---
title: "Text Liquid"
description: "The letters drip, bead, and pull back in like wet ink, then settle into crisp, readable text."
url: https://gelatinui.com/components/text-liquid
markdown_url: https://gelatinui.com/components/text-liquid.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/text-liquid"
version: "2026-11-15"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Text Liquid

> The letters drip, bead, and pull back in like wet ink, then settle into crisp, readable text.

Page: https://gelatinui.com/components/text-liquid

## When to use it

Best for: One short, large word or line that should look wet for a moment and then read clean.

- Use it on display text, 32px and up: drops under small text are too small to read as drops.
- Use `trigger="hover"` inside a link or button: it reads the hover and focus of the nearest one.
- Set `drip` to hold a loop from app state; the last drip always finishes.

## When not to use it

- For a label that rolls on hover, use [Text Roll](https://gelatinui.com/components/text-roll.md).

## Notes for agents

- `children` is a string, or the parts `TextLiquidContent` and `TextLiquidCanvas`. Leave out the canvas part for plain text.
- The real text stays in the page: wrap, selection, and the accessible name do not change. The canvas is `aria-hidden`.
- At rest the canvas hides and the page text shows, so the glyphs are always crisp at rest.
- The loop stops off screen and in a hidden tab. With no 2D canvas, the text shows plain.

## Anatomy

```text
TextLiquid
├─ TextLiquidContent (0..n)
└─ TextLiquidCanvas (0..n)
```

## API reference

### TextLiquid

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `children` | `ReactNode` |  | A string, or the parts `TextLiquidContent` and `TextLiquidCanvas`. |
| `locale` | `string` |  | The BCP 47 locale of the text, for the case of `text-transform` on the canvas. Default: the `DisplayLocaleProvider` locale, else `"en-US"`. |
| `trigger` | `"hover" \| "mount" \| "view"` | "view" | When it drips: `view` (default) once, the first time it shows; `mount` once, at once; `hover` in a loop while a pointer is over it or keyboard focus is on it (or the link around it). |
| `drip` | `boolean` |  | True drips in a loop until false, on top of the trigger. The last drip always finishes. |
| `onSettled` | `function` |  | Called when a drip ends and the text is crisp again. |

### TextLiquidContent

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### TextLiquidCanvas

No props of its own: `className`, `children`, and every other prop go to the element it renders.

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| TextLiquid | `text-liquid` |  |  |  |
| TextLiquidContent | `text-liquid-content` | `data-dripping` |  |  |
| TextLiquidCanvas | `text-liquid-canvas` | `data-dripping` |  |  |

## Usage

Wrap the word that should drip. Put it in a link for a hover drip.

```tsx title="hero.tsx"
import { TextLiquid, TextLiquidCanvas, TextLiquidContent } from "@/components/pro/text/text-liquid";

export function Hero() {
  return (
    <section className="flex flex-col items-center gap-4 py-24 text-center">
      <h1 className="text-6xl font-semibold tracking-tight">
        Components that{" "}
        <TextLiquid trigger="view" className="text-primary">
          <TextLiquidContent>pour</TextLiquidContent>
          <TextLiquidCanvas />
        </TextLiquid>{" "}
        into place
      </h1>
      <p className="text-muted-foreground">Copy the source, keep the craft.</p>
    </section>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui-pro/text-liquid
```

It adds 31 registry items: 31 files, 3845 lines, and the npm packages `@mantine/hooks`, `@xstate/react`, `clsx`, `motion`, `tailwind-merge`, `xstate`.

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Text Roll](https://gelatinui.com/components/text-roll.md)
- [Text Scramble](https://gelatinui.com/components/text-scramble.md)

## Motion

| Part | Motion |
| --- | --- |
| Drip | flow · 1.8s per drip · each drop beads, falls 0.3 to 0.75em, and pulls back in · goo fades in and out over 0.3s |
