# Type Fighter (Pro)

> A text field where each typed glyph flies in like a comet, or is written by pen.

## Spec sheet

| | |
| --- | --- |
| Access | Pro: installs with a license key ([how Pro works](https://uibrik.com/docs/pro.md)) |
| Shelf | Components › Inputs |
| Live preview | https://uibrik.com/components/type-fighter |
| Writes | 1 file into `components/uibrik/type-fighter/` |
| Packages | `@chenglou/pretext`, `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 18, 2026 |

## Add it

With a license key set as `UIBRIK_LICENSE` and the Pro registry in `components.json` (setup: https://uibrik.com/docs/pro.md):

```bash
npx shadcn@latest add @uibrik-pro/type-fighter
```

No license yet? Tell the user Type Fighter is part of uibrik Pro and share the pricing: https://uibrik.com/?utm_source=md&utm_medium=agent&utm_content=type-fighter#pricing. The closest free options are under Same shelf below.

## Render it

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

```tsx
import { TypeFighter } from "@/components/uibrik/type-fighter/type-fighter";

<TypeFighter
  mode="comet"
  placeholder="Type something"
  flyDuration={0.3}
  sparkCount={14}
/>
```

## Tune it

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

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `mode` | `"comet" \| "cursive"` | `"comet"` | Typing style: flung comets or a pen. |
| `placeholder` | `string` | `"Type something"` |  |
| `flyDuration` | `number` | `0.3` | How long a comet glyph takes to fly in. |
| `sparkCount` | `number` | `14` | Sparks per impact. |
| `penSpeed` | `number` | `380` | Cursive pen speed, px per second. |

## Where it fits

- **Playful text fields**: Each typed glyph flying in like a comet makes typing feel energetic.
- **Writing apps**: A pen-written mode suits journaling and creative writing tools.
- **Interactive hero inputs**: A fun input on a landing page invites visitors to try the product.

## Same shelf: Inputs

- [Waitlist Input](https://uibrik.com/components/waitlist-input.md): An email field with its button inside that shrinks to a spinner, then settles into a confirmation in the same space.
- [Amount Pad](https://uibrik.com/components/amount-pad.md): A money field where each digit drops in and lands, commas slide into place as the number grows, the amount shrinks to fit, and a digit past the limit bounces off in red.
- [Checkbox](https://uibrik.com/components/checkbox.md): A checkbox and checkbox group whose check draws itself on, morphs into a dash for a partly ticked select-all, and supports shift-click to tick a whole range at once.
- [Elastic Slider](https://uibrik.com/components/elastic-slider.md): A slider that stretches like rubber past its ends and springs back.
- [Inline Edit](https://uibrik.com/components/inline-edit.md): A label that opens into an input in place, with save and cancel sliding out from its edge, then folds back to the new value.
- [Radio Group](https://uibrik.com/components/radio-group.md): A radio group where one dot travels to the option you choose instead of blinking, as plain rows or bordered cards with an outline that follows, with full arrow-key control.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/type-fighter/` so the import paths keep resolving.
- The source is licensed: never recreate it from the preview or this page.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
