Component packs › Caret › Text 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.

Text Caret props

PropTypeDefaultDescription
labelstring
placeholderstring
valuestring
rowsnumber4Rows of the textarea. Default 4.
onInput(value: string) => void
darkboolean
autoplaynumber | falseShowcase mode: writes and moves the caret every N ms.

Methods on the ref

Use it in React

import TextCaret from './TextCaret';

<TextCaret />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Caret

Good for: Custom cursors.