<Step>

<Step>

One step of a <Procedure>. Its children render from that step on: finished steps stay in the context, and later ones stay hidden.

import { Step } from "curb";

function Step(props: StepProps): ReactNode;

Props

PropTypeWhat it does
titlestringThe step’s name

Example

<Procedure title="Verify the caller">
  <Step title="Ask for the policy number">
    <Instruction>Ask for the policy number.</Instruction>
    <Tool name="find_policy" description="Find a policy by its number." onCall={findPolicy} />
  </Step>
  <Step title="Confirm the name">Ask the caller to confirm the name on the policy.</Step>
</Procedure>

Version history

VersionChanges
v0.1.2<Step> introduced