All components

Trace

Show a collapsible sequence of operations.

Examples

Show a collapsible sequence of operations

Import trace
  1. Read the source file
  2. Validated 12 rows
  3. Saved the import
React code
import { Trace, TraceSummary } from "@accelerate/react/components";

export function Example() {
  return (
    <>
      <Trace>
        <TraceSummary>Import trace</TraceSummary>
        <ol>
          <li>Read the source file</li>
          <li>Validated 12 rows</li>
          <li>Saved the import</li>
        </ol>
      </Trace>
    </>
  );
}
Angular code
import { Component } from "@angular/core";
import { AccTrace, AccTraceSummary } from "@accelerate/angular/components";

@Component({
  selector: "app-example",
  imports: [
    AccTrace,
    AccTraceSummary,
  ],
  template: `
    <details accTrace>
      <summary accTraceSummary>Import trace</summary>
      <ol>
        <li>Read the source file</li>
        <li>Validated 12 rows</li>
        <li>Saved the import</li>
      </ol>
    </details>
  `,
})
export class Example {}

Installation

Source preview. The expanded component catalog is ahead of the public npm releases. To run these examples in your own application, use packages built from the SDK source used for the previews or a release that includes the APIs below.

React
@accelerate/ui@0.4.0 and @accelerate/react@0.4.0
Angular
@accelerate/ui@0.4.0 and @accelerate/angular@0.2.0

Load @accelerate/ui/theme.css and put acc-theme on the app or the region using Accelerator components. See the framework setup guide for the theme and adapter conventions.

Usage

Compose a TraceSummary and an ordered list of operations, optionally using nested details for output and status.

Import the React component Trace from @accelerate/react/components. For Angular, add AccTrace to the standalone component’s imports and use <details accTrace>.

Examples use these React parts: Trace, TraceSummary. The Angular examples show the corresponding directives and template hosts.

API reference

TraceSummary
Provides the native disclosure trigger.
Content
Use an ordered list to show the sequence of events.