Utility
AI
Terminal
Installation
pnpm dlx shadcn@latest add https://termcn.dev/r/json.json
Usage
import { JSONView } from "@/components/ui/json";<JSONView
label="package.json"
data={{
name: "my-cli",
version: "1.0.0",
dependencies: { ink: "^5.0.0" },
}}
/>API Reference
JSONView
| Prop | Type | Default |
|---|---|---|
data | unknown | required |
indent | number | 2 |
collapsed | boolean | false |
label | string | undefined |