Skip to content
Menu

Text effects

Typing cursor text

Typing cursor text: A sentence types out one character at a time behind a blinking cursor, pauses, then erases backward and types the next line in an endless loop.

Using Typing cursor text

Typing cursor text uses the card preview frame with a light/dark theme setting.

Customize the preview

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

ControlTypeDefaultPreview limits
durationnumber60From 20 to 200; step 10
holdDelaynumber1200From 300 to 3000; step 100
loopbooleantrueNo additional limit in the metadata.
showCursorbooleantrueNo additional limit in the metadata.
Which frameworks are available for Typing cursor text?

Typing cursor text is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.

What does Typing cursor text depend on?

The React metadata lists these npm dependencies beyond React: motion.

What accessibility details are visible in Typing cursor text?

The React source for Typing cursor text includes: attributes and handlers (aria-hidden). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

How does Typing cursor text handle reduced motion?

Typing cursor text reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: idle && !reduced ? { duration: 1, repeat: Infinity, times: [0, 0.5, 0.51, 1], ease: "linear" } : { duration: 0.12 }; idle && !reduced ? { opacity: [1, 1, 0, 0] } : { opacity: 1 }. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

Connect your agent

Related open components