Skip to main content

Functions

AutoScrollJsonViewer()

Defined in: components/json-viewer.tsx:86 Enhanced JSON tree viewer wrapper that handles automatic scroll locking. Keeps the scroll position pinned to the bottom of the container while JSON is streaming, unless the user manually scrolls upwards to view historical lines.

Parameters

props
AutoScrollJsonViewerProps Component properties.

Returns

Element Scroll-aware container wrapping the JSON tree.

JsonViewer()

Defined in: components/json-viewer.tsx:19 React Component that visualizes objects as formatted, interactive JSON trees. Automatically supports light and dark themes using next-themes. Incorporates custom string node formatting to preserve line breaks and white spaces.

Parameters

props
JsonViewProps<object> Props passed down to the underlying @uiw/react-json-view component.

Returns

Element Interactive JSON tree element.