Skip to content

Conversation

@chacha912
Copy link

This PR introduces new display options to enhance the visualization of nested data structures and provides additional icon style choices for a more customizable user experience.

Changes

  • Added displayCompact option that hides ':', '{', and '[' symbols for non-leaf nodes, creating a cleaner visualization of nested structures
  • Implemented new icon style options: Added chevron style alongside the existing triangle style
custom.mov

I've updated the readme and demo as well.
Expecting to your feedback. Thank you.

Fixed #68

@vercel
Copy link

vercel bot commented Mar 16, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-json-view ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 16, 2025 1:23pm

@Kikobeats
Copy link
Member

It's nice!

What could be more interesting is, rather than having a list of fixed icons, to provide a way to fully customize the icon.

If the icon could be specified as a function, then it would be easier to use any icon rendered by the function, following this pattern: https://reactpatterns.com/#render-prop

What do you think?

@Kikobeats
Copy link
Member

Kikobeats commented May 16, 2025

ping @chacha912 in case you missed the notification 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Additional Customization Options for Icons and Formatting

2 participants