---
title: "Text Speed Reader"
description: "Shows one word at a time with its focus letter marked, at a set words-per-minute pace, with pause and progress."
url: https://gelatinui.com/components/text-speed-reader
markdown_url: https://gelatinui.com/components/text-speed-reader.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/text-speed-reader"
version: "2026-11-15"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Text Speed Reader

> Shows one word at a time with its focus letter marked, at a set words-per-minute pace, with pause and progress.

Page: https://gelatinui.com/components/text-speed-reader

## When to use it

Best for: A reader that shows one word at a time, with a speed control, pause, and progress.

- Use `defaultWpm` for the start speed.
- Use `wpm` and `onWpmChange` to control the speed.

## When not to use it

- For text that types in, use [Text Typewriter](https://gelatinui.com/components/text-typewriter.md).
- For text that streams in from a model, use [Text Streaming](https://gelatinui.com/components/text-streaming.md).

## Notes for agents

- Give the text in `text`.
- The parts are the word, the controls, the play and step buttons, the speed slider, and the progress.

## Anatomy

```text
TextSpeedReader
├─ TextSpeedReaderWord (0..n)
├─ TextSpeedReaderControls (0..n)
├─ TextSpeedReaderPlay (0..n)
├─ TextSpeedReaderStep (0..n)
├─ TextSpeedReaderSpeed (0..n)
└─ TextSpeedReaderProgress (0..n)
```

## API reference

### TextSpeedReader

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `locale` | `string` |  | The BCP 47 locale for the letter and word split (`Intl.Segmenter`). Default: the `DisplayLocaleProvider` locale, else `"en-US"`. |
| `text` | `string` |  | The text to read, one word at a time. |
| `children` | `ReactNode` |  | The parts. Default: the word, the controls row, and the progress. |
| `wpm` | `number` |  | The speed in words per minute (controlled). |
| `defaultWpm` | `number` | SPEED_READER_WPM.default | The first speed when `wpm` is not set. Default 300. |
| `onWpmChange` | `function` |  |  |
| `labels` | `Partial<TextSpeedReaderLabels>` |  | The words the item writes: button names, the speed unit, the time left. |

### TextSpeedReaderWord

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### TextSpeedReaderControls

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### TextSpeedReaderPlay

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |
| `busy` | `boolean` |  | The button waits for the app (busy words): a spinner, `aria-busy`, and no clicks. Focus stays on the button. The style hook stays `data-loading`. |
| `spinnerPlacement` | `"center" \| "start"` |  | `center` (default): the spinner covers the label. `start`: it takes the leading icon slot. The icon sizes always use `center`, because their one icon is the label. |
| `glass` | `"clear" \| "dark" \| "light"` |  |  |
| `rounded` | `"default" \| "full"` |  |  |
| `size` | `"default" \| "icon" \| "icon-lg" \| "icon-sm" \| "icon-xs" \| "lg" \| "sm" \| "xl" \| "xs"` | "icon" |  |
| `variant` | `"dashed" \| "default" \| "destructive" \| "destructive-outline" \| "ghost" \| "link" \| "media" \| "outline" \| "secondary"` | "default" |  |

Also takes every prop of Base UI `Button`: https://base-ui.com/react/components/button

### TextSpeedReaderStep

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |
| `busy` | `boolean` |  | The button waits for the app (busy words): a spinner, `aria-busy`, and no clicks. Focus stays on the button. The style hook stays `data-loading`. |
| `spinnerPlacement` | `"center" \| "start"` |  | `center` (default): the spinner covers the label. `start`: it takes the leading icon slot. The icon sizes always use `center`, because their one icon is the label. |
| `glass` | `"clear" \| "dark" \| "light"` |  |  |
| `rounded` | `"default" \| "full"` |  |  |
| `size` | `"default" \| "icon" \| "icon-lg" \| "icon-sm" \| "icon-xs" \| "lg" \| "sm" \| "xl" \| "xs"` | "icon" |  |
| `variant` | `"dashed" \| "default" \| "destructive" \| "destructive-outline" \| "ghost" \| "link" \| "media" \| "outline" \| "secondary"` | "ghost" |  |
| `direction` | `"back" \| "forward"` |  | `back` shows the word before, `forward` the word after. Both pause. |

Also takes every prop of Base UI `Button`: https://base-ui.com/react/components/button

### TextSpeedReaderSpeed

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |
| `control` | `ReactNode` |  | The control under the children. Default: a `SliderControl` with the track, the indicator, and one thumb per value. Pass your own `SliderControl` to change a part (a thumb with a Tooltip). |
| `thumbProps` | `Omit<SliderThumbProps, "index">` |  | Props for every default thumb: `getAriaLabel`, `getAriaValueText`, `aria-label`, `disabled`. |
| `tone` | `TrackTone` |  | `default`: the `primary` fill. A status colors the fill and the thumb edge: `success` a good value, `warning` a value that needs care, `info` a neutral mark, `destructive` a value over a limit. Color is never the only signal: say it in words too. |
| `glow` | `boolean` |  | A soft halo in the fill color (`glow`, `@gelatin-ui/glow`). Default: `false`. |
| `variant` | `"bare" \| "default" \| "playhead"` |  | `default`: the track, the fill, and round thumbs. `playhead`: an invisible track over the parent's whole box and a 2px line thumb, for a scrub over a waveform or a timeline (the parent draws the played part). `bare`: the same press area with thumbs that the item draws (children of `SliderThumb`), for the handles of a timeline. Default `default`. |
| `children` | `ReactNode` | "Speed" | The label. Default "Speed". |

Also takes every prop of Base UI `Slider.Root`: https://base-ui.com/react/components/slider

### TextSpeedReaderProgress

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |
| `glow` | `boolean` |  | A soft halo in the fill color (`glow`, `@gelatin-ui/glow`). Default: `false`. |
| `tone` | `TrackTone` |  | The fill color: `default` (`primary`), or a status for a task whose state has a meaning: `success` done, `warning` slow or nearly full, `info` a neutral step, `destructive` failed. Color is never the only signal: say the state in the label or value. |

Also takes every prop of Base UI `Progress.Root`: https://base-ui.com/react/components/progress

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| TextSpeedReader | `text-speed-reader` |  |  |  |
| TextSpeedReaderWord | `text-speed-reader-word` |  |  |  |
| TextSpeedReaderControls | `text-speed-reader-controls` |  |  |  |
| TextSpeedReaderPlay | `text-speed-reader-play` |  |  |  |
| TextSpeedReaderStep | `text-speed-reader-step` |  |  |  |
| TextSpeedReaderSpeed | `text-speed-reader-speed` |  |  |  |
| TextSpeedReaderProgress | `text-speed-reader-progress` |  |  |  |

## Usage

Give the text, then place the word and the controls.

```tsx title="focus-reader.tsx"
import {
  TextSpeedReader,
  TextSpeedReaderControls,
  TextSpeedReaderPlay,
  TextSpeedReaderProgress,
  TextSpeedReaderSpeed,
  TextSpeedReaderWord,
} from "@/components/pro/text/text-speed-reader";

const ARTICLE = "Every part ships as source you own. Copy it, read it, and change it.";

export function FocusReader() {
  return (
    <TextSpeedReader text={ARTICLE} defaultWpm={300} className="w-md max-w-full">
      <TextSpeedReaderWord />
      <TextSpeedReaderProgress />
      <TextSpeedReaderControls>
        <TextSpeedReaderPlay />
        <TextSpeedReaderSpeed />
      </TextSpeedReaderControls>
    </TextSpeedReader>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui-pro/text-speed-reader
```

It adds 44 registry items: 40 files, 6558 lines, and the npm packages `@base-ui/react`, `@mantine/hooks`, `@phosphor-icons/react`, `@xstate/react`, `clsx`, `motion`, `tailwind-merge`, `tailwind-variants`, `xstate`.

## Built on

- [Button](https://gelatinui.com/components/button.md)
- [Progress](https://gelatinui.com/components/progress.md)
- [Slider](https://gelatinui.com/components/slider.md)

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Text Typewriter](https://gelatinui.com/components/text-typewriter.md)
- [Text Streaming](https://gelatinui.com/components/text-streaming.md)
- [Text Scramble](https://gelatinui.com/components/text-scramble.md)

## Keyboard

| Keys | Action |
| --- | --- |
| ArrowLeft / ArrowRight | On the word or a control: steps one word back or on (mirrored right to left). |
| Home / End | Goes to the first or the last word. |
| Space / Enter | Presses the focused button: play, pause, or a step. |
