# Checkpoint

A divider marking a restorable point in a conversation.

- **Use it for**: Marking a point in a conversation people can restore.
- **Not for**: Branch navigation. Try [BranchSwitcher](https://unseenui.com/components/branch-switcher/).

## Installation

```bash
npm install @stackunseen/ui
```

## Usage

```tsx
import { Checkpoint } from '@stackunseen/ui/assistant';
import '@stackunseen/ui/styles.css';

<Checkpoint createdAt={time} onRestore={restore} />
```

## All props

| Prop | Type | Description |
| --- | --- | --- |
| `className` | `string` |  |
| `createdAt` | `string` | Host timestamp of the checkpoint. |
| `label` | `string` |  |
| `onRestore` | `(() => void)` | Requests a restore. |
| `restoring` | `boolean` |  |

## Keyboard

Tab reaches controls; Enter or Space activates buttons. Accordions use arrow keys, Home and End. Select menus support arrows and typeahead; Escape closes menus and dialogs and restores focus.

## Works with

[Reasoning](https://unseenui.com/components/reasoning/), [SuggestTextarea](https://unseenui.com/components/suggest-textarea/), [SlashCommandMenu](https://unseenui.com/components/slash-command-menu/), [ThreadList](https://unseenui.com/components/thread-list/), [BranchSwitcher](https://unseenui.com/components/branch-switcher/), [MessageQueue](https://unseenui.com/components/message-queue/), [PromptInput](https://unseenui.com/components/prompt-input/), [Message](https://unseenui.com/components/message/), [MessageActions](https://unseenui.com/components/message-actions/), [StreamingResponse](https://unseenui.com/components/streaming-response/), [Suggestions](https://unseenui.com/components/suggestions/), [FollowUps](https://unseenui.com/components/follow-ups/)

Page: https://unseenui.com/components/checkpoint/
