Skip to content

v2.0.0-alpha.37

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 26 Aug 16:16

Buy me a coffee

Documentation v2.0.0-alpha.37: https://raw.githack.com/uiwjs/react-json-view/9b4b997/index.html
Or Doc Website: https://htmlpreview.github.io/?https://github.com/uiwjs/react-json-view/9b4b997/index.html
Comparing Changes: v2.0.0-alpha.36...v2.0.0-alpha.37

npm i @uiw/react-json-view@2.0.0

Global beforeCopy (removes quotes and adds comments for objects

<JsonView value={example} onCopied={handleCopied} displayObjectSize={false}>

Section-level beforeCopy (converts to uppercase)

<JsonView.Copied
  beforeCopy={(text, keyName, value) => {
    console.log('Section-level beforeCopy:', { text, keyName, value });
    return text.toUpperCase();
  }}
/>
</JsonView>