JsonView
A folding JSON tree: copy any path, highlight a search.
function Basic() {
const [q, setQ] = useState("");
return (
<div className="flex w-560 flex-col gap-12">
<SearchInput aria-label="Search JSON" placeholder="Search keys and values" value={q} onChange={(e) => setQ(e.target.value)} onClear={() => setQ("")} />
<JsonView value={body} query={q || undefined} />
</div>
);
}import { JsonView } from "@logicplanes/kaeso-ui";Props
defaultDepthnumber = 2Levels open at first (2 by default).
querystringHighlights keys and values that contain this text.
surface"well" | "plain" = wellOn a filled well (
well) or on the panel itself (plain).valueunknownThe data to show as formatted JSON.