Skip to main content

Common Examples

To use the ActionLog, pass configured steps through the required steps prop. Each step requires a stable id and a title. An empty steps array renders nothing.

Statuses

status selects a neutral progress marker for "not-started", "in-progress", and "success". "error" uses the critical treatment.

Descriptions and details

Use description for supporting plain text. Use details for rendered content that appears inside an independently collapsible Card.

Expansion

The step list starts expanded. Set defaultExpanded={false} to start collapsed. Pass expanded and onExpandedChange to control the list, for example to keep it open while a response streams. Each step’s details stay independently uncontrolled.

Accessibility

  • Status markers use accessibilityRole="image" and a status label. They do not imply form semantics.
  • Show steps / Hide steps and Show details / Hide details are disclosure buttons. Details toggles include the step title in accessibilityLabel so repeated controls stay distinguishable.
  • Stable step id values preserve each details disclosure when steps stream or re-render.
  • Built-in toggle and status labels are English until the kit gains an i18n layer. Localize title and description before passing them.
Last modified on September 1, 2026