@sinm/json-table-viewer
v0.1.0
Published
render json to table
Downloads
1
Readme
json table viewer
render json to table
Installation
npm install @sinm/json-table-viewer
# or
yarn add @sinm/json-table-viewer
Usage
import { JSONTableViewer } from '@sinm/json-table-viewer';
<JSONTableViewer json={json} />
Props (extends table props)
| Prop | Type | Required | Description | | ----------- | -------------------------- | -------- | --------------------- | | json | any | true | data to render | | renderKey | (key: string) => ReactNode | false | custom key renderer | | renderValue | (value: any) => ReactNode | false | custom value renderer | | className | string | false | table class name | | style | string | false | table style |