---
title: "Text Letterpress"
description: "The text looks pressed into paper, with an inner shadow and fibers, and presses deeper when you push it."
url: https://gelatinui.com/components/text-letterpress
markdown_url: https://gelatinui.com/components/text-letterpress.md
access: free
install: "npx shadcn@latest add @gelatin-ui/text-letterpress"
registry_item: https://gelatinui.com/r/text-letterpress.json
version: "2026-11-15"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Text Letterpress

> The text looks pressed into paper, with an inner shadow and fibers, and presses deeper when you push it.

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

## When to use it

Best for: A heading that looks pressed into paper, and presses deeper when pushed.

- Use `pressable` to let a press push the letters deeper.
- Use it on a light paper-like surface.

## When not to use it

- For letters set one by one like metal type, use [Text Typesetter](https://gelatinui.com/components/text-typesetter.md).
- For text with a long shadow, use [Text Cast Shadow](https://gelatinui.com/components/text-cast-shadow.md).

## Notes for agents

- Put the text in the Content part.
- With `pressable` off, it is a still print.

## Anatomy

```text
TextLetterpress
└─ TextLetterpressContent (0..n)
```

## API reference

### TextLetterpress

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `children` | `ReactNode` |  | A string, or the part `TextLetterpressContent`. |
| `pressable` | `boolean` | true | True (default): a press pushes the letters deeper. The press of a link or button around the text counts; with none, the text takes a tab stop, and Space or Enter press it. |

### TextLetterpressContent

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

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| TextLetterpress | `text-letterpress` |  | `--letterpress-text-ink`, `--letterpress-text-ink-shown`, `--letterpress-text-light`, `--letterpress-text-light-shown`, `--letterpress-text-shade`, `--letterpress-text-shade-shown` |  |
| TextLetterpressContent | `text-letterpress-content` |  | `--letterpress-text-ink-shown` |  |

## Usage

Put the text in the Content part.

```tsx title="invite-title.tsx"
import { TextLetterpress, TextLetterpressContent } from "@/components/text/text-letterpress";

export function InviteTitle() {
  return (
    <section className="flex flex-col items-center gap-3 py-16 text-center">
      <p className="text-sm tracking-widest text-muted-foreground uppercase">You are invited</p>
      <h1 className="text-7xl font-bold tracking-tight">
        <TextLetterpress>
          <TextLetterpressContent>Save the date</TextLetterpressContent>
        </TextLetterpress>
      </h1>
      <p className="text-muted-foreground">June 14, Belgrade</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/text-letterpress
```

It adds 15 registry items: 15 files, 2069 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 Typesetter](https://gelatinui.com/components/text-typesetter.md)
- [Text Cast Shadow](https://gelatinui.com/components/text-cast-shadow.md)
- [Text Stroke Draw](https://gelatinui.com/components/text-stroke-draw.md)
