Skip to content
Sign upGet access
MicrointeractionsFocus readerMenu

Focus reader (Pro)

ProIncluded in $99

A long answer that reads with you, sentence by sentence.

ProThe sentence you are on stays in full ink while the rest settle back, a guide glides to it in the margin, and with read aloud a highlighter sweeps it in time with the voice.

The sentence you are on stays in full ink while the ones behind settle back and the ones ahead wait faint, and a guide in the margin glides to each new sentence on a spring. With read aloud, a highlighter sweeps through the sentence in time with the voice, across line breaks, the way a finger follows a line.

Installation

$ pnpm dlx shadcn@latest add @chatcn-pro/focus-reader

Needs chatcn Pro

This command works with a Pro license, along with every Pro component.

Or start free: sign up and get three Pro components on us, with a new one every month.

Usage

tsx
import { FocusReader } from "@/components/ui/chatcn/pro/focus-reader"

<FocusReader text={answer} index={sentence} onIndexChange={seek} sentenceMs={durations[sentence]} />

Props

PropTypeNotes
textstringSplit into sentences inside
index / onIndexChangenumberOptional control
sentenceMsnumberWith read aloud: sweeps the highlighter in time

Keyboard

KeyAction
Arrow keys / J / KNext or previous sentence

Accessibility

  • The current sentence carries aria-current.

Motion

  • Colours fade 300 ms; the guide rides a critically damped spring; the sweep is linear. Reduced motion: no sweep.