Skip to content

feat: Add displayCompact options and new icon styles #69

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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

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?

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