Skip to content

Conversation

@yyytae0
Copy link
Contributor

@yyytae0 yyytae0 commented Jul 31, 2025

<JsonView value={data} displayDataTypes={false} style={customStyle} collapsed={collapse}> <JsonView.KeyName<'span'> render={({ ...props }, { keys }) => { // Access to keys is available return <span {...props} />; }} /> <JsonView.String render={({ ...props }, { keys }) => { // Access to keys is unavailable return <span {...props} />; }} /> </JsonView>;

allow to get keys when someone want to get keys on Value rendering as Keyname

Could you review the following?
thx

@jaywcjlove jaywcjlove merged commit 896344b into uiwjs:main Jul 31, 2025
github-actions bot pushed a commit that referenced this pull request Jul 31, 2025
…render values (#74) Co-authored-by: uta <tyyoun@gabia.com> 896344b
jaywcjlove added a commit that referenced this pull request Jul 31, 2025
github-actions bot pushed a commit that referenced this pull request Jul 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants