Interactive react component for displaying javascript arrays and JSON objects.
npm install searchable-react-json-viewThis is a fork of react-json-view with an extra search capability.
Please go there for the full readme.
sh
yarn add searchable-react-json-view
`$3
Name|Type|Default|Description
|:---|:---|:---|:---
highlightSearch|string|None|What term to highlight - applies to number, string, boolean and object keys.
highlightSearchColor|string|
|Highlight color
highlightCurrentSearchColor|string|
| Current highlight color
customCopiedIcon|JSX.Element| null | Custom icon that appears after copying
customCopyIcon|JSX.Element| null | Custom icon for copy to clipboard
customActions|array| [] | Custom actions that appear after copy, edit etc. each item should be: { icon: JSX.Element, onClick: clickedJsonValue => void } $3

$3
`jsx
customCopiedIcon={Copied}
customCopyIcon={Copy}
customActions={[{
icon: A,
onClick: (value) => alert(JSON.stringify(value))
}]}
/>
``