@unleashit/recursive-data-lister
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

Recursive Data Lister

NPM npm (scoped) npm bundle size

React component that recursively pretty prints nested lists or objects with various options for html markup and styling.

recursive data lister component

Features

  • Quickly display simple or complex nested lists and objects as html.
  • Choice of html (ul, ol, div, etc.).
  • Display as a single list or separate lists per first level parent.
  • For arrays of objects, the option to choose a property to use its value as the heading (replace the numerical index).
  • Handles dates. Either provide a formatter function, or by default will be displayed as strings. Also attempts to find and handle dates in string values.
  • Basic default CSS available with easy customization through cssVars prop.

Install

npm install @unleashit/recursive-data-lister

Documentation

https://unleashit.github.io/npm-library/components/recursiveDataLister

Demo

https://npm-library-demo.vercel.app/recursive-data-lister

Package Sidebar

Install

npm i @unleashit/recursive-data-lister

Weekly Downloads

3

Version

2.0.2

License

MIT

Unpacked Size

260 kB

Total Files

29

Last publish

Collaborators

  • unleashit