---
title: "Text Countdown Words"
description: "The time left is written out in words, and each word that changes animates in place."
url: https://gelatinui.com/components/text-countdown-words
markdown_url: https://gelatinui.com/components/text-countdown-words.md
access: free
install: "npx shadcn@latest add @gelatin-ui/text-countdown-words"
registry_item: https://gelatinui.com/r/text-countdown-words.json
version: "2026-11-15"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Text Countdown Words

> The time left is written out in words, and each word that changes animates in place.

Page: https://gelatinui.com/components/text-countdown-words

## When to use it

Best for: A time left inside a sentence, written as words that change in place.

- Use `maxUnits` to show one to four units.
- Use `numerals="digits"` for numbers as digits.

## When not to use it

- For a countdown with separate digit boxes, use [Countdown](https://gelatinui.com/components/countdown.md).
- For a number that rolls to a new value, use [Rolling Number](https://gelatinui.com/components/rolling-number.md).

## Notes for agents

- Give `date` as a date or epoch ms. `now` sets a fixed now for tests and stories.
- Put the words for the end in the Ended part.

## Anatomy

```text
TextCountdownWords
├─ TextCountdownWordsValue (0..n)
└─ TextCountdownWordsEnded (0..n)
```

## API reference

### TextCountdownWords

| 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"`. |
| `date` | `DateLike` |  | The moment the count ends. A date, epoch ms, or ISO text. |
| `now` | `DisplayNow` |  | A fixed now (stories, tests, a frozen view). Default: the live page clock. |
| `maxUnits` | `number` | 2 | At most this many units, from the biggest one that is not 0. Default 2 ("3 days, 4 hours"). |
| `numerals` | `CountdownNumerals` | "words" | `words` (default) writes the numbers in words in English ("three days"); other languages and `digits` write the digits ("3 days"): `Intl` has no spell-out. |

### TextCountdownWordsValue

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `reserveWidthFor` | `readonly string[]` |  | Every text this morph can show (`["Copy link", "Copied"]`). The root keeps the width of the widest one, so a price or a badge never changes size between states; only the letters move inside it. Align the text in that width with `justify-items-*` on the root (start by default). Leave it out for text in a sentence: there the width slides instead. |
| `variant` | `TextMorphLook` | TEXT_BLUR_MORPH_LOOK | How the words change: the look of a morph item. Default: the look of Text Blur Morph. |

### TextCountdownWordsEnded

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `children` | `ReactNode` | "Time is up" | The text at the end. Default "Time is up". |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| TextCountdownWords | `text-countdown-words` |  |  |  |
| TextCountdownWordsValue | `text-countdown-words-value` |  |  |  |
| TextCountdownWordsEnded | `text-countdown-words-ended` |  |  |  |

## Usage

Put the countdown in a sentence. The Ended part shows when time is up.

```tsx title="launch-line.tsx"
import { TextCountdownWords, TextCountdownWordsEnded, TextCountdownWordsValue } from "@/components/text/text-countdown-words";

const LAUNCH = new Date("2026-12-01T09:00:00Z");

export function LaunchLine() {
  return (
    <p className="text-2xl font-medium tracking-tight">
      Launch in{" "}
      <TextCountdownWords date={LAUNCH} maxUnits={2}>
        <TextCountdownWordsValue />
        <TextCountdownWordsEnded>We are live</TextCountdownWordsEnded>
      </TextCountdownWords>
    </p>
  );
}
```

## 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/text-countdown-words
```

It adds 29 registry items: 28 files, 4638 lines, and the npm packages `@base-ui/react`, `@internationalized/date`, `@mantine/hooks`, `clsx`, `motion`, `tailwind-merge`.

## Built on

- [Text Blur Morph](https://gelatinui.com/components/text-blur-morph.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

- [Countdown](https://gelatinui.com/components/countdown.md)
- [Rolling Number](https://gelatinui.com/components/rolling-number.md)
