Open
Description
First, I'd like to thank you for maintaining react-json-view. It's an excellent library that I've been using extensively in my projects!
I've made some custom modifications to meet specific UI requirements:
- Added an
iconStyle='arrow'
option to change the default triangle icons to arrows - Implemented a
displayBraceColon={false}
prop to hide the colon after braces
My Questions
- Are there existing, documented ways to achieve these customizations that I might have missed?
- If not, would you consider these features as potential additions to the library?
I'd be happy to contribute a PR for these features if you think they would be valuable additions to the library.
I share the commits where I implemented these customizations for your reference. chacha912/react-json-view@a06cb3e
Thank you for considering my request!
Metadata
Metadata
Assignees
Labels
No labels
Activity
pgliang001 commentedon Mar 15, 2025
Hi @chacha912
In recommend, rename
displayBraceColon
todisplayCompact
. This better illustrates the output visual effect rather than the behavior. NamingdisplayCompact
mean to do more than hide the colon after braces if you or other can in future.PS. i borrow the naming from gmail setting ^_^
chacha912 commentedon Mar 16, 2025
@pgliang001 Thanks for the good suggestion. I'll make the changes and submit a PR.