Skip to content

Basic Usage ​

The smallest useful setup: bind a reactive object with v-model, start in tree mode and give the editor a height. Edit any value and the bound object below updates instantly.

Basic usage

How it works ​

  • v-model keeps json and the editor in sync in both directions.
  • current-mode="tree" starts in the tree view; the user can still switch modes from the menu.
  • theme="auto" follows the site's dark mode.

Next: Read-only viewer or the Usage guide.

Released under the MIT License.