Chris Tate ad0be0efc9 devtools (#273) 2 月之前
..
src ad0be0efc9 devtools (#273) 2 月之前
README.md ad0be0efc9 devtools (#273) 2 月之前
package.json ad0be0efc9 devtools (#273) 2 月之前
tsconfig.json ad0be0efc9 devtools (#273) 2 月之前

README.md

@json-render/devtools-svelte

Svelte adapter for the json-render devtools. Drop-in <JsonRenderDevtools /> component.

Installation

npm install @json-render/devtools @json-render/devtools-svelte

Peer dep: svelte@^5.

Usage

<script>
  import { JsonRenderDevtools } from "@json-render/devtools-svelte";
</script>

<JSONUIProvider {registry}>
  <Renderer {spec} {registry} />
  <JsonRenderDevtools {spec} {catalog} {messages} />
</JSONUIProvider>
  • Floating toggle appears bottom-right.
  • Hotkey: Ctrl/Cmd + Shift + J.
  • Tree-shakes to nothing in production builds.

See the devtools docs for the full prop reference and panel tour.

License

Apache-2.0