Skip to main content
GitHub

JSON Viewer

Collapsible, syntax-coloured JSON with copy-path.

@kineticui/ui
"id": "evt_1Q8x",
"type": "invoice.paid",
"livemode": true,
"amount": 4900,
"id": "cus_29",
"email": "maya@acme.io",
},
],
"metadata": null
}

Installation

Copies the source into your project so you can edit every line.

$ npx @kineticui/cli add json-viewer

Exports

JsonViewer

Source: packages/ui/src/components/json-viewer.tsx