Skip to content

Vairavelflash/FlexGridLayout-React-Package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flexgridlayout-react

github: https://github.com/Vairavelflash/FlexGridLayout-React-Package

A flexible grid layout React component for easy grid management.

Installation

npm install flexgridlayout-react

Usage

import React from 'react';
import { FlexGridLayout } from 'flexgridlayout-react';

const gridItems = [
  { content: 'Item1', id: '1', rowSpan: '1', colSpan: '1' },
  { content: 'Item2', id: '2', rowSpan: '1', colSpan: '1' },
  // ... (rest of your gridItems)
];

const App = () => {
  return (
    <FlexGridLayout rowCount={3} colCount={4} gridItems={gridItems} />
  );
};

export default App;


Props rowCount: Number of rows in the grid. colCount: Number of columns in the grid. gridItems: An array of objects representing items in the grid.

{
  content: 'Item1',
  id: '1',
  rowSpan: '1',
  colSpan: '1',
}


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published