---
title: "Text Solid Depth"
description: "A 3D title with solid, shaded sides from the face color to the back. It turns to face the pointer."
url: https://gelatinui.com/components/text-solid-depth
markdown_url: https://gelatinui.com/components/text-solid-depth.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/text-solid-depth"
version: "2026-11-15"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Text Solid Depth

> A 3D title with solid, shaded sides from the face color to the back. It turns to face the pointer.

Page: https://gelatinui.com/components/text-solid-depth

## When to use it

Best for: One short title or word in a hero, where a solid 3D look fits the brand.

- Wrap the text of a heading. Every element is a `span`, so it is valid in an `h1`.
- Use `pointer="page"` to turn it toward the mouse anywhere on the page, `element` (default) only while the mouse is on it, or `none` to keep it at rest.
- Use `orbit` for a slow idle turn that never ends. `paused`, `defaultPaused`, and `pauseOnHover` hold it.
- Use `intro` to grow the depth out of the face the first time the text is on screen.
- Use `depth` (in em, default 1), `layers` (2 to 24), `maxAngle` (default 16), and `perspective` (default 800px) to tune the look.

## When not to use it

- For the same effect with another look, use [Text Fade Depth](https://gelatinui.com/components/text-fade-depth.md).
- For lines of a text at different depths on a plane that turns, use [Text Perspective](https://gelatinui.com/components/text-perspective.md).
- For a card or an image that turns toward the mouse, use [Tilt](https://gelatinui.com/components/tilt.md).
- For a long title that people must read, or body text, use plain text.

## Notes for agents

- Solid Depth Text is Depth Text with `variant="solid"` fixed: it takes every other Depth Text prop and part.
- `children` must be a string. The face is the real text: it selects, copies, and a screen reader reads it once. The copies behind it are `aria-hidden` and do not select.
- The colors come from the text color: `--depth-text-side` (the side next to the face) and `--depth-text-back` (the far end) on the root change them.
- The pointer writes custom properties on the stage, so React does not render on a mouse move. The orbit is one CSS animation; it stops off screen and while it is paused.
- With `orbit` and `pointer` `page`, a device with a mouse does not orbit: the mouse leads all the time. A touch screen orbits.
- With no `intro`, the server HTML already has the full depth, so the text does not jump on load.

## Anatomy

```text
TextSolidDepth
```

## API reference

### TextSolidDepth

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `paused` | `boolean` |  | The pause of the user or the page (controlled). |
| `defaultPaused` | `boolean` |  | The first pause when `paused` is not given (uncontrolled). Default false. |
| `onPausedChange` | `function` |  | Called when the pause changes. |
| `pauseOnHover` | `boolean` |  | Hold the motion while a mouse is over the item, or keyboard focus is on the link or button around it (or in it). Default true. |
| `children` | `string` |  | The text. Short: a word or a title line. |
| `layers` | `number` |  | How many copies of the text make the depth, from 2 to 24. More is smoother and costs more. Default 16, or 6 with `outline`: 16 outlines 0.06em apart fill in as one solid side, so the lines of the wire frame only show with fewer copies. |
| `depth` | `number` |  | The depth from the face to the last layer, in `em` of the text. Default 1. |
| `maxAngle` | `number` |  | The largest turn in degrees. The rest angle and the orbit are parts of it. Default 16. |
| `perspective` | `number` |  | The 3D view distance in px. Smaller is stronger. Default 800. |
| `pointer` | `"element" \| "none" \| "page"` |  | What the mouse does: `element` (default) turns the text while the mouse is on it, `page` turns it toward the mouse anywhere on the page, `none` keeps it at rest. |
| `orbit` | `boolean` |  | A slow idle turn around the rest angle that never ends. Default false: a quiet start, the text rests until the page asks for motion. `paused`, `defaultPaused`, `onPausedChange`, and `pauseOnHover` are the pause pattern of; they stop only the orbit, and the pointer still turns the text. `pauseOnHover` defaults to true with `pointer` `element` (the mouse leads) and false otherwise. |
| `orbitDuration` | `number` |  | Seconds for one orbit. Default 12. |
| `intro` | `boolean` |  | The depth grows out of the face when the intro starts. Default false: the text has its full depth from the first paint. An intro starts flat, so the text first looks plain. |
| `trigger` | `"mount" \| "view"` |  | When the intro starts: `view` (default) the first time the text is on screen, `mount` at once. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| TextSolidDepth | `text-solid-depth` |  |  |  |

## Usage

Wrap the title of a hero. Pick the `variant` and the `pointer` area.

The sample also uses `badge`, `button`, which this add does not write. One command adds them with this item:

```bash
npx shadcn@latest add @gelatin-ui-pro/text-solid-depth @gelatin-ui/badge @gelatin-ui/button
```

```tsx title="launch-hero.tsx"
import { TextSolidDepth } from "@/components/pro/text/text-solid-depth";
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";

export function LaunchHero() {
  return (
    <section className="flex flex-col items-center gap-6 px-4 py-24 text-center">
      <Badge>Version 4.0</Badge>
      <h1 className="text-6xl font-extrabold tracking-tight">
        <TextSolidDepth pointer="page" intro>
          Launch day
        </TextSolidDepth>
      </h1>
      <p className="max-w-md text-muted-foreground">
        Everything you build ships faster, with fewer steps and no setup.
      </p>
      <div className="flex gap-3">
        <Button>Get started</Button>
        <Button>Read the notes</Button>
      </div>
    </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-solid-depth
```

It adds 25 registry items: 24 files, 3673 lines, and the npm packages `@base-ui/react`, `@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 Fade Depth](https://gelatinui.com/components/text-fade-depth.md)
- [Text Wire Depth](https://gelatinui.com/components/text-wire-depth.md)
- [Tilt](https://gelatinui.com/components/tilt.md)
- [Magnetic](https://gelatinui.com/components/magnetic.md)
- [Text Perspective](https://gelatinui.com/components/text-perspective.md)

## Keyboard

| Keys | Action |
| --- | --- |
| Tab | While keyboard focus is on the link or button around the text, the text leans to the side, as the mouse would turn it. |

## Motion

| Part | Motion |
| --- | --- |
| Turn | hover · 150ms · the text turns toward the mouse, up to `maxAngle` degrees |
| Orbit | progress · `orbitDuration` (default 12s) · a slow loop around the rest angle, linear, with no end |
| Lean | panel · 260ms · keyboard focus around the text leans it to the side |
| Intro | draw · 900ms · the depth grows out of the face |
