uibrik

Type Fighter

Preview

Customize

Comet
Fly duration0.30s
Sparks14

Usage

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

<TypeFighter />

Installation

npx shadcn@latest add https://uibrik.com/r/type-fighter.json
Adds the files to components/uibrik/type-fighter and installs @chenglou/pretext and motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/type-fighter.

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.