Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/MaxwellCohen/visual-screen-reader.
Something went wrong. Try again.
340 B · 11 lines
Svelte
at main
123456789101112<script lang="ts"> import type { AxTreeNode } from '../shared/ax-tree' import { axTreeToJson } from './flatten-ax-tree-json' import JsonViewer from './JsonViewer.svelte'
let { roots }: { roots: AxTreeNode[] } = $props()
const jsonValue = $derived(axTreeToJson(roots))</script>
<JsonViewer value={jsonValue} expandDepth={2} />