Component packs › Caret › Text Caret
The caret glides to each new position instead of jumping, stretches in the direction it travels and blinks only when you rest.
Text Caret is a caret from Caret, a component pack with 6 cursors: Custom cursors that read what they are over and turn into its tool. Price: $2 for the whole pack.
Built with: mirror-measured caret position, travel stretch, idle-only blink.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | ||
placeholder | string | ||
value | string | ||
rows | number | 4 | Rows of the textarea. Default 4. |
onInput | (value: string) => void | ||
dark | boolean | ||
autoplay | number | false | Showcase mode: writes and moves the caret every N ms. |
readonly field: HTMLTextAreaElementdestroy(): voidimport TextCaret from './TextCaret';
<TextCaret />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Custom cursors.