@unleashit/recursive-data-lister
v2.0.4
Published
Simple React component that displays a nested object recursively with a choice of markup.
Downloads
65
Maintainers
Readme
Recursive Data Lister
React component that recursively pretty prints nested lists or objects with various options for html markup and styling.
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