jsonview

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

templ: version: v0.3.977

Index

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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL