StackTrace
API reference and demos for StackTrace.
Import
Section titled “Import”import { StackTrace } from "@flanksource/clicky-ui/data";The props table documents the component-specific surface. Standard DOM attributes inherited from React, such as className, event handlers, and accessibility attributes, may also be accepted when the component’s prop type extends a native element.
| Prop | Type | Default | Description |
|---|---|---|---|
className |
string |
— | Classes applied to the stack-trace shell. |
contextLines |
number |
3 |
Number of source lines to request around each frame. |
exclude |
string[] |
— | Hide frames whose class starts with one of these prefixes. |
frameActions |
StackFrameActions |
— | Trailing per-frame actions, revealed on hover/focus. |
frameActionsVisibility |
enum |
hover |
Control whether per-frame actions are hover-only or always visible. |
frameFilter |
(…) => boolean |
— | Additional application-owned frame predicate. |
hideRuntimeOnly |
boolean |
false |
Hide frames known to be runtime/library-only. |
include |
string[] |
— | Only show frames whose class starts with one of these prefixes. |
input* |
string | ParsedStackTrace |
— | Raw Java stack-trace string or a pre-parsed ParsedStackTrace from a backend/parser. |
language |
"java" |
java |
Parser language. Currently Java stack traces are supported. |
renderCauseDetail |
(…) => ReactNode |
— | Render application-owned detail below a parsed cause. |
renderFrameDetail |
StackFrameDetailRenderer |
— | Render application-owned detail below each visible frame. |
renderFramePart |
StackFramePartRenderer |
— | Replace method, class, and location labels with application-owned renderers. |
resolver |
StackTraceSourceResolver |
— | Optional source-line resolver for inline context under frames. |
showFrameIndex |
boolean |
true |
Show each frame's 1-based ordinal in the gutter. Defaults to true. |