Skip to content
Theme
endue.ai

Components, Chat

Step list

A list of the steps an agent takes, one per row. Finished steps get a check and the current step gets the star.

Name in code StepList

Find inquiry emails in Gmail12 emails
Filter out refund requests3 excluded
Drafting replies4 of 9
Save to drafts

A list that shows the steps an agent takes, one row each. A finished step has a check and the current step has the star. The preview here is static. Props and accessibility behavior are settled at implementation time.

When to use

State Leading mark Text
done Check icon (muted-foreground) muted-foreground
running Star (twinkling) foreground, weight 600
pending None muted-foreground
failed × icon (destructive-text) destructive-text
  • When there are many steps, you can collapse the finished ones and leave only the current step.
  • A step name says what is being done (“Find inquiry emails in Gmail”). Don’t use the tool name as it is.

Rows

  • Each row has a 1px border hairline above and below, padding of 9, and 14px text.
  • A value sits at the right end of the row (“12 emails”, “4 of 9”). It is 12px with tabular figures.

Markup

<div class="StepList_list">
  <div class="StepList_step" data-state="done"><span class="StepList_icon">…check…</span><span class="StepList_name">Find inquiry emails in Gmail</span><span class="StepList_meta">12 emails</span></div>
  <div class="StepList_step" data-state="running"><span class="StepList_icon">…Star…</span><span class="StepList_name">Drafting replies</span><span class="StepList_meta">4 of 9</span></div>
</div>

Don’t

  • Don’t attach a colored dot or a colored badge to each step.
  • Don’t put the star anywhere except the current step.