svelte-json-view
Purpose: Displays JSON data in a tree-like expandable view for easy visualization and navigation.
Target Audience: Developers working with JSON data in Svelte or vanilla JavaScript applications.
Key Features:
- Supports both Svelte components and vanilla JS usage.
- Customizable theming via CSS variables (colors, padding, borders, etc.).
- Configurable initial expansion depth.
- Responsive hover effects on brackets.
- Type-specific value coloring (strings, numbers, booleans).
Svelte Support: Primarily designed as a Svelte component, but can also be used in vanilla JS projects via CDN or bundler imports.
Theming: Offers extensive customization through CSS variables, including:
- Colors for keys, values, brackets, and separators.
- Padding and border styles for depth indication.
- Hover effects.
Props:
json
: The un-stringified object to display.depth
: Controls initial expansion depth (defaults to fully expanded).
json-treepretty-printsveltevanillajs
Featured Stories
No featured articles here. Navigate to an article, then pick the Feature on menu button