Focus reader (Pro)
ProIncluded in $99A long answer that reads with you, sentence by sentence.
On this page
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
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
import { FocusReader } from "@/components/ui/chatcn/pro/focus-reader"
<FocusReader text={answer} index={sentence} onIndexChange={seek} sentenceMs={durations[sentence]} />Props
| Prop | Type | Notes |
|---|---|---|
text | string | Split into sentences inside |
index / onIndexChange | number | Optional control |
sentenceMs | number | With read aloud: sweeps the highlighter in time |
Keyboard
| Key | Action |
|---|---|
Arrow keys / J / K | Next 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.