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
Preview
Section titled “Preview”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,iconoricon-smwhen no label is shown,mdorlgfor standalone placements. - When omitting
label, settooltip— it becomes the accessible name (aria-label). Falls back to"Checkpoint"if neither is set.
Examples
Section titled “Examples”Labeled
Section titled “Labeled”Icon Only
Section titled “Icon Only”icon-sm size with a tooltip — for tight action bars.
Ghost Variant (Default)
Section titled “Ghost Variant (Default)”Default Variant
Section titled “Default Variant”The filled default variant raises the button off the surface — useful when the checkpoint is the primary affordance in its container.
| Property | Type | Default | Notes |
|---|---|---|---|
| label | string | — | Optional text beside the icon. |
| tooltip | string | — | Tooltip on hover. |
| variant | "ghost" | "default" | "outline" | 'ghost' | Visual button style. |
| size | "sm" | "lg" | "md" | "icon" | "icon-sm" | 'sm' | Button size (use an `icon*` size for an icon-only checkpoint). |
Events
Section titled “Events”| Event | Detail | Notes |
|---|---|---|
| kai-select | — | The checkpoint was clicked. |
Composed from
Section titled “Composed from”This element wraps these SolidJS components — reach for them directly when you need finer control than the props expose.
CheckpointCheckpointIconCheckpointTrigger