Updated
Type Fighter
ProCustomize
Comet
Fly duration0.30s
Sparks14
Installation
ProType Fighter is a Pro component
Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.
Install with a key
- Add the Pro registry to
components.json:components.json { "registries": { "@uibrik-pro": { "url": "https://uibrik.com/r/pro/{name}.json", "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" } } } } - Put your key in
.env.localand add that file to.gitignore:.env.local UIBRIK_LICENSE=your-license-key - Install it:
Terminal npx shadcn@latest add @uibrik-pro/type-fighter
Loading your installation…
Usage
import { TypeFighter } from "@/components/uibrik/type-fighter/type-fighter";<TypeFighter mode="comet" placeholder="Type something" flyDuration={0.3} sparkCount={14}/>Where to use Type Fighter
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.
Props
TypeFighter- mode
- Type "comet" | "cursive"
- "comet"
- Typing style: flung comets or a pen.
- placeholder
- Type string
- "Type something"
- flyDuration
- Type number
- 0.3
- How long a comet glyph takes to fly in.
- sparkCount
- Type number
- 14
- Sparks per impact.
- penSpeed
- Type number
- 380
- Cursive pen speed, px per second.