---
title: "Text Balloon"
description: "Puffy, inflated letters that squish when you press them and wobble back into shape."
url: https://gelatinui.com/components/text-balloon
markdown_url: https://gelatinui.com/components/text-balloon.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/text-balloon"
version: "2026-11-15"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Text Balloon

> Puffy, inflated letters that squish when you press them and wobble back into shape.

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

## When to use it

Best for: A short, playful heading that people can press.

- Use it on one short word or a two-word heading.
- Set the color with a text color class: the balloons take it.

## When not to use it

- For letters that fall and stack with physics, use [Text Falling](https://gelatinui.com/components/text-falling.md).
- For a heading that only enters once, use [Text Split Headline](https://gelatinui.com/components/text-split-headline.md).

## Notes for agents

- Write the text in the Content part and put the Canvas part after it. The Content part stays real text.
- A press squishes the letters, and they wobble back. Keep it on short text.

## Anatomy

```text
TextBalloon
├─ TextBalloonContent (0..n)
└─ TextBalloonCanvas (0..n)
```

## API reference

### TextBalloon

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `children` | `ReactNode` |  | A string, or the parts `TextBalloonContent` and `TextBalloonCanvas`. |
| `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"`. |

### TextBalloonContent

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

### TextBalloonCanvas

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

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| TextBalloon | `text-balloon` |  |  |  |
| TextBalloonContent | `text-balloon-content` | `data-covered` |  |  |
| TextBalloonCanvas | `text-balloon-canvas` | `data-covered` |  |  |

## Usage

Put the word in the Content part and the Canvas after it.

```tsx title="party-heading.tsx"
import { TextBalloon, TextBalloonCanvas, TextBalloonContent } from "@/components/pro/text/text-balloon";

export function PartyHeading() {
  return (
    <section className="flex flex-col items-center gap-4 py-16 text-center">
      <h1 className="text-8xl font-black tracking-tight text-pink-500">
        <TextBalloon>
          <TextBalloonContent>Party time</TextBalloonContent>
          <TextBalloonCanvas />
        </TextBalloon>
      </h1>
      <p className="text-muted-foreground">The heading stays real text for search and copy.</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-balloon
```

It adds 33 registry items: 33 files, 5114 lines, and the npm packages `@mantine/hooks`, `clsx`, `motion`, `tailwind-merge`.

## 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 Falling](https://gelatinui.com/components/text-falling.md)
- [Text Particle](https://gelatinui.com/components/text-particle.md)
- [Text Elastic Letters](https://gelatinui.com/components/text-elastic-letters.md)
