Skip to content
kitn AI/UI

Checkpoint

kai-checkpoint

A compact bookmark button that marks a restore point in a conversation thread.

  • Shadow DOM
  • 1 event
  • 3 variants
  • 5 sizes
  • Icon-only or labeled

All props are scalar attributes — no JavaScript needed:

<kai-checkpoint label="Restore" tooltip="Restore this checkpoint" variant="outline" size="sm"></kai-checkpoint>
<script type="module">
import '@kitn.ai/ui/elements';
document.querySelector('kai-checkpoint')
.addEventListener('kai-select', () => console.log('restore checkpoint'));
</script>
  • Use sm (default) for inline action bars, icon or icon-sm when no label is shown, md or lg for standalone placements.
  • When omitting label, set tooltip — it becomes the accessible name (aria-label). Falls back to "Checkpoint" if neither is set.

icon-sm size with a tooltip — for tight action bars.

The filled default variant raises the button off the surface — useful when the checkpoint is the primary affordance in its container.

PropertyTypeDefaultNotes
theme'auto'Color mode (`auto` follows prefers-color-scheme).
labelOptional text beside the icon.
tooltipTooltip on hover.
variant'ghost'Visual button style.
size'sm'Button size (use an `icon*` size for an icon-only checkpoint).
EventDetailNotes
The checkpoint was clicked.

This element wraps these SolidJS components — reach for them directly when you need finer control than the props expose.

CheckpointCheckpointIconCheckpointTrigger