AsterUIDocsv1.0.2

Docs / Component reference

JsonViewer

Expand one branch of a structured record while the rest stays folded.

JSON viewer example

Install

sh
npx @fierst/ui@1.0.2 add json-viewer

Registry dependencies: theme, icon. Package dependencies: @lucide/icons.

Exports from ./ui/json-viewer: JsonViewer.

Download the registry source for json-viewer 1.0.2.

API contracts

ts
export function* JsonViewer(
  props: {
    data: unknown;
    defaultExpandedDepth?: number;
    class?: string;
  },
  ctx: Ctx,
)