---
title: "Text Circle Annotation"
description: "A hand-drawn circle draws itself around the text, like a pen mark around a key word."
url: https://gelatinui.com/components/text-circle-annotation
markdown_url: https://gelatinui.com/components/text-circle-annotation.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/text-circle-annotation"
version: "2026-11-15"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Text Circle Annotation

> A hand-drawn circle draws itself around the text, like a pen mark around a key word.

Page: https://gelatinui.com/components/text-circle-annotation

## When to use it

Best for: A phrase in a heading or a paragraph that gets one hand-drawn mark when the reader sees it.

- Wrap the phrase to mark, inside the text: the mark follows it line by line when it wraps.
- Use `delay` to chain marks in one sentence, and `show` to erase a mark and draw it again.
- Set `tone` to give the mark a status color; with no tone it uses the primary ink.

## When not to use it

- For the same effect with another look, use [Text Underline Annotation](https://gelatinui.com/components/text-underline-annotation.md).
- For a plain, still highlight on a phrase or on the words that match a search, use [Mark](https://gelatinui.com/components/mark.md).
- For a text whose letter outlines draw, then fill, use [Text Stroke Draw](https://gelatinui.com/components/text-stroke-draw.md).

## Notes for agents

- Circle Annotation is Text Annotation with `type="circle"` fixed: it takes every other Text Annotation prop and part.
- `trigger` is `view` (default: the first time the text is on screen, with the tab shown) or `mount`. It draws once and does not draw again on a scroll out and back.
- `show={false}` erases the mark; `true` draws it again. `delay` is in seconds.
- `padding` (default 4px) puts a box, circle, or bracket outside the text, so leave room next to the words around it (a margin on the root).
- `seed` (default 1) picks the bends: the same seed always draws the same mark. `strokeWidth` is 2px by default; a highlight is as tall as the line, at 35% opacity, under the text.
- The mark measures again on a resize of the parent, a new text, and a font load. It reads `dir`, and draws from the start edge right to left.
- The marks are an SVG hidden from screen readers; the text stays plain text in the page.

## Anatomy

```text
TextCircleAnnotation
```

## API reference

### TextCircleAnnotation

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `tone` | `"destructive" \| "info" \| "neutral" \| "success" \| "warning"` |  | The status color of the mark: `neutral` (the text ink), `info`, `success`, `warning`, or `destructive`. Default: no status, the `primary` ink (`warning` for a highlight). |
| `show` | `boolean` |  | Show the mark. Set it to `false` to erase the mark, and back to `true` to draw it again. |
| `trigger` | `ViewEntryTrigger` |  | When the mark draws: `view` (default) the first time the text is on screen, `mount` at once. |
| `delay` | `number` |  | Seconds to wait before the mark draws, to follow another mark. Default 0. |
| `padding` | `number` |  | The space between the text and a box, circle, or bracket, in px. Default 4. |
| `strokeWidth` | `number` |  | The stroke width in px (not for `highlight`, which is as tall as the line). Default 2. |
| `seed` | `number` |  | The seed of the hand-drawn bends: another number draws another mark. Default 1. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| TextCircleAnnotation | `text-circle-annotation` |  |  |  |

## Usage

Wrap the phrase to mark inside your text. Use `delay` to draw one mark after another.

```tsx title="pricing-section.tsx"
import { TextCircleAnnotation } from "@/components/pro/text/text-circle-annotation";

export function PricingSection() {
  return (
    <section className="mx-auto flex max-w-xl flex-col gap-3 py-12">
      <h2 className="text-4xl font-semibold tracking-tight">
        Pay once, <TextCircleAnnotation tone="info">use forever</TextCircleAnnotation>
      </h2>
      <p className="text-lg text-muted-foreground">
        <del>
          <TextCircleAnnotation tone="destructive">
            $299
          </TextCircleAnnotation>
        </del>{" "}
        <TextCircleAnnotation tone="success" delay={0.6} className="mx-1.5">
          $199
        </TextCircleAnnotation>{" "}
        for the launch week.
      </p>
      <p className="text-muted-foreground">
        Every update is{" "}
        <TextCircleAnnotation delay={1.2}>
          free for the life of the product
        </TextCircleAnnotation>
        .
      </p>
    </section>
  );
}
```

## 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-circle-annotation
```

It adds 23 registry items: 21 files, 3176 lines, and the npm packages `@base-ui/react`, `@mantine/hooks`, `clsx`, `motion`, `tailwind-merge`, `tailwind-variants`.

## 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 Underline Annotation](https://gelatinui.com/components/text-underline-annotation.md)
- [Text Highlight Annotation](https://gelatinui.com/components/text-highlight-annotation.md)
- [Mark](https://gelatinui.com/components/mark.md)
- [Text Stroke Draw](https://gelatinui.com/components/text-stroke-draw.md)

## Motion

| Part | Motion |
| --- | --- |
| Draw | draw · 900ms · ease-panel (0.2, 0.4, 0.2, 1) · each stroke draws from its start to its end; the strokes draw in turn and share the 900ms, so three lines take as long as one |
| Start | instant · each stroke shows when its own draw starts, after `delay` seconds, at mount or the first time it is in view |
| Erase | fade-exit · 90ms · ease-out · `show={false}` fades the strokes out and pulls them back |
