# Rust Text

> Brushed steel type that rusts while you watch and flakes away, polished back to a shine wherever the pointer passes.

## Spec sheet

| | |
| --- | --- |
| Access | Free: no account, free for commercial use |
| Shelf | Text Animations › Interactive |
| Live preview | https://uibrik.com/components/rust-text |
| Writes | 1 file into `components/uibrik/rust-text/` |
| 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/rust-text.json
```

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

Can't run commands? https://uibrik.com/components/rust-text/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 { RustText } from "@/components/uibrik/rust-text/rust-text";

<RustText
  text="Rust never sleeps"
  duration={14}
  start={0.15}
  brush={30}
  flakes
/>
```

## Tune it

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

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `text` | `string` | `"Rust never sleeps"` | The words, on one line. |
| `duration` | `number` | `14` | Time for clean metal to rust right through. |
| `start` | `number` | `0.15` | How rusted it is when it appears. |
| `brush` | `number` | `30` | Polishing brush radius. |
| `flakes` | `boolean` | `true` | Let fully rusted metal flake off. |

## Wire it

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

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `className` | `string` |  | Classes for the wrapper. |

## Where it fits

- **Industrial brands**: Brushed steel type that rusts and flakes suits hardware and manufacturing products.
- **Interactive titles**: Polishing the type back to shine under the pointer rewards visitors who play.
- **Creative portfolios**: A material-based text effect shows craft in WebGL.

## Same shelf: Interactive

- [Draggable Letters](https://uibrik.com/components/draggable-letters.md): Letters you can pull apart; they spring home.
- [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.

## Ground rules

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