AI Agents Fancy Stable

AgentPlan

Glanceable checklist of an agent's plan: a done/total count and completion bar over one row per step, with a status glyph, an optional detail line, and substeps indented under a rail

Preview

Installation

pnpm add fancy-ui-svelte
import { AgentPlan } from 'fancy-ui-svelte'

Usage

svelte
<script lang="ts">
  import { AgentPlan } from 'fancy-ui-svelte';
</script>

<AgentPlan />

Examples

Basic Usage

Props

PropTypeDefaultDescription
steps *PlanStepData[]-The plan, in the order the agent means to work through it; nests one level via substeps
label string"Plan"Header text, sitting beside the done/total count
showProgress booleantrueWhether the thin completion bar shows under the header; its fraction counts substeps as steps
onSelect (step: PlanStepData) => void-Called when a row is activated; supplying it turns every row into a button

Slots

SlotDescription
itemReplaces the built-in row body, keeping the glyph and the indent; receives the step and its position in visual order