TraceProps

Unpublished development API. This package is under development and is not available as a published release.

Presentation options for one collapsible step of work; the owner supplies its state.

import type { TraceProps } from '@threadplane/react/chat';

Declaration

export interface TraceProps  {
  readonly children?: ReactNode;
  readonly className?: string;
  readonly defaultExpanded?: boolean;
  readonly icon?: ReactNode;
  readonly label: ReactNode;
  readonly meta?: ReactNode;
  readonly state?: TraceState;
}

Members

children

The detail shown while the trace is open.

readonly children?: ReactNode;

className

readonly className?: string;

defaultExpanded

Whether a pending or done trace starts open.

readonly defaultExpanded?: boolean;

icon

Decorative content before the label.

readonly icon?: ReactNode;

label

What the step is; it names the toggle.

readonly label: ReactNode;

meta

Short content after the label, such as a duration.

readonly meta?: ReactNode;

state

Defaults to pending. A running or error trace opens by itself.

readonly state?: TraceState;