PgFlowDashboard.Components.JsonViewer (PgFlow v0.3.0)

Copy Markdown View Source

Server-rendered, syntax-styled JSON with an optional copy action.

Summary

Functions

Renders JSON-compatible data with semantic syntax tokens.

Functions

json_viewer(assigns)

Renders JSON-compatible data with semantic syntax tokens.

Values are emitted through HEEx so payload content remains HTML escaped.

Attributes

  • id (:string) (required)
  • data (:any) (required)
  • class (:any) - Defaults to nil.