{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "json-card", "title": "JSON Card", "description": "Card composition for titled, scrollable, and accessible structured JSON.", "registryDependencies": [ "askyourpolicy/ss-registry/stitch-base", "askyourpolicy/ss-registry/card", "askyourpolicy/ss-registry/json-viewer" ], "files": [ { "path": "src/components/ui/json-card.tsx", "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport {\n Card,\n CardAction,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"@/components/ui/card\";\nimport { JsonViewer, type JsonViewerProps } from \"@/components/ui/json-viewer\";\n\ntype JsonCardProps = Omit, \"children\" | \"title\"> & {\n actions?: React.ReactNode;\n description?: React.ReactNode;\n title: React.ReactNode;\n value: unknown;\n viewerProps?: Omit;\n};\n\nfunction JsonCard({ actions, description, title, value, viewerProps, ...props }: JsonCardProps) {\n return (\n \n \n {title}\n {description != null ? {description} : null}\n {actions != null ? {actions} : null}\n \n \n \n \n \n );\n}\n\nexport { JsonCard, type JsonCardProps };\n", "type": "registry:ui" } ], "type": "registry:ui" }