@sinm/json-table-viewer
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @sinm/json-table-viewer

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

11.8 kB

Total Files

11

Last publish

Collaborators

  • pansinm