Code

StackTrace

Collapsible error stack trace component with frame parsing, copy functionality, and file path click handling.

Props

PropTypeDefaultDescription
tracestring-Stack trace text to parse and display
openboolean-Controlled open/closed state
defaultOpenbooleanfalseInitial open/closed state
onOpenChange(open: boolean) => void-Callback when open state changes
onFilePathClick(path: string, line?: number, col?: number) => void-Callback when a file path is clicked

Import

import { StackTrace, StackTraceHeader, StackTraceError, StackTraceContent, StackTraceFrames } from '@blastx/ui-ai';