ReferenceComponentsLogs, JSON, and diffs
flattenJson
flattenJson component API, behavior, and executable example.
Loading executable example…
API and events
Inspect streaming logs, expandable structured values, and line-oriented changes in terminal-bounded viewports.
export function flattenJson(
value: unknown,
options: FlattenJsonOptions,
): readonly JsonViewerNode[];Props, functions, and events
This declaration has no public members.
LogViewer reports follow state; JSON expansion can be controlled; pure transformation helpers emit nothing.
Callback props run after the documented input is accepted. Callbacks are not cancellable unless their return type or description states otherwise.
Interaction and capabilities
Viewers scroll and filter; JSON nodes expand or collapse; diff output remains deterministic in static mode.
The published manifest records keyboard, focus, pointer, theme, terminal, semantic, event, and dependency requirements.
Complete import
import { flattenJson } from "@/components/tuil/data-display/log-viewer";