Documentation ¶ Overview ¶ templ: version: v0.3.977 Index ¶ func JSONView(props Props) templ.Component type Props Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func JSONView ¶ func JSONView(props Props) templ.Component JSONView renders a formatted, syntax-highlighted JSON viewer. If Value is valid JSON, it is pretty-printed with color-coded tokens. If not, the raw value is displayed as-is. Types ¶ type Props ¶ type Props struct { ID string Class string Attributes templ.Attributes Value string // raw value to display (JSON or plain text) } Source Files ¶ View all Source files highlight.gojsonview_templ.go Click to show internal directories. Click to hide internal directories.