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.

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. Each step’s details remain independently controlled.

Heading level

Set titleLevel to fit the surrounding document outline. The main steps toggle uses one level above it, and details toggles use one level below it. Step titles remain body text.

Internationalization

ActionLog owns these localized labels:
  • ai-kit.actionLog.showSteps
  • ai-kit.actionLog.hideSteps
  • ai-kit.actionLog.showDetails
  • ai-kit.actionLog.hideDetails
  • ai-kit.actionLog.statusNotStarted
  • ai-kit.actionLog.statusInProgress
  • ai-kit.actionLog.statusSuccess
  • ai-kit.actionLog.statusError
Localize step titles and descriptions before passing them in steps. Mount AiKitIntlProvider inside CartoTheme to switch the built-in labels.

React Accessibility

  • Status markers include localized screen-reader-only labels and do not imply form semantics.
  • The ordered list preserves step sequence.
  • Show steps, Hide steps, Show details, and Hide details expose disclosure state through accessible buttons.
  • Stable step id values preserve each details disclosure when steps stream or re-render.
Last modified on August 28, 2026