Skip to content
caliper ui pro docs

Glide caret

A text area whose caret glides. It slides to each new place in about a tenth of a second, down a line on Enter and back with the arrows, then blinks when you stop.

Pro

When to use

  • Writing surfaces and note apps where typing is the product.
  • Comment boxes and editors that want a quiet signature detail.

When not to use

  • Code editors; the caret must be exact on every keystroke.
  • Single-line fields; they gain little.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/glide-caret

Adds its 3 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

GlideCaret

0 props

No props of its own; it accepts the native props of its root element.

caretBox

0 props

No props of its own; it accepts the native props of its root element.

Keyboard

  • No custom key handling; Tab and the native activation keys do the work.

Accessibility

It is built on native elements and keeps aria-hidden in step with state.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/glide-caret.md

The index of every part is at /llms.txt.

More in Text motion