1.1.5 • Published 6 months ago

folder-structure-display v1.1.5

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

��# Folder Structure Display

folder-structure-display is a React component that enables you to visualize hierarchical folder structures with ease.

Installation

npm install folder-structure-display

How To Implement

First Create a Data Array as Given Below :

const data = [
  {
    name: "Home",
    children: [
      {
        name: "Section 1",
        children: [
          { name: "H1" },
          { name: "H1" },
          { name: "H1" },
          { name: "H1" },
        ],
      },
    ],
  },
  {
    name: "About",
    children: [
      {
        name: "Section 1",
        children: [
          { name: "H1" },
        ],
      },
    ],
  },
];

The data array represents a sample folder structure. Customize it according to your needs.

Make Sure The Folder the Data Format is Same as Mentioned Above.

Usage

import React from 'react';
import FolderStructureDisplay from 'folder-structure-display';

const data = [
  {
    name: "Home",
    children: [
      {
        name: "Section 1",
        children: [
          { name: "H1" },
          { name: "H1" },
          { name: "H1" },
          { name: "H1" },
        ],
      },
    ],
  },
  {
    name: "About",
    children: [
      {
        name: "Section 1",
        children: [
          { name: "H1" },
        ],
      },
    ],
  },
];

const App = () => {
  return (
    <div>
      <h1>Your React App</h1>
      <FolderStructureDisplay data={data} />
    </div>
  );
};

export default App;

Props :

iconcolor

backgroundcolor

textcolor

Image :

Preview

1.1.5

6 months ago

1.1.4

6 months ago

1.1.3

6 months ago

1.1.2

6 months ago

1.1.1

6 months ago

1.1.0

6 months ago

1.0.9

6 months ago

1.0.8

6 months ago

1.0.7

6 months ago

1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.0

6 months ago