# Draggable Letters

> Letters you can pull apart; they spring home.

## Spec sheet

| | |
| --- | --- |
| Access | Free: no account, free for commercial use |
| Shelf | Text Animations › Interactive |
| Live preview | https://uibrik.com/components/draggable-letters |
| Writes | 1 file into `components/uibrik/draggable-letters/` |
| Packages | `motion` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 9, 2026 |

## Add it

```bash
npx shadcn@latest add https://uibrik.com/r/draggable-letters.json
```

With the `@uibrik` namespace in `components.json` ([setup](https://uibrik.com/docs/installation.md)): `npx shadcn@latest add @uibrik/draggable-letters`.

Can't run commands? https://uibrik.com/components/draggable-letters/prompt.txt has every file verbatim, with the setup steps, ready for an assistant to write.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { DraggableLetters } from "@/components/uibrik/draggable-letters/draggable-letters";

<DraggableLetters
  play={0}
  text="Pull me apart"
  falloff={0.5}
  settleDuration={0.45}
  bounce={0.15}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/draggable-letters.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `text` | `string` | `"Pull me apart"` | The copy to animate. |
| `falloff` | `number` | `0.5` | Share of the pull each neighbour follows, per step away. |
| `settleDuration` | `number` | `0.45` | Time to spring home. |
| `bounce` | `number` | `0.15` | Spring bounce on release. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `play` (required) | `number` |  | Each change plays the effect again; 0 shows its resting state. |

## Where it fits

- **Portfolio heroes**: Letters you can pull apart invite visitors to play with a name or title.
- **404 and empty pages**: Something to drag turns a dead end into a moment of delight.
- **Creative agency sites**: Springy, physical type suits studios that want their site to feel hands-on.

## Same shelf: Interactive

- [Hover Weight](https://uibrik.com/components/hover-weight.md): Letters grow heavier as the cursor nears them.
- [Lean and Scramble](https://uibrik.com/components/lean-scramble.md): Words lean and scramble under the cursor.
- [Pull Toward Cursor](https://uibrik.com/components/pull-to-cursor.md): Letters lean toward the cursor like a magnet.
- [Rust Text](https://uibrik.com/components/rust-text.md): Brushed steel type that rusts while you watch and flakes away, polished back to a shine wherever the pointer passes.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/draggable-letters/` so the import paths keep resolving.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
