Grid component for React [NPM Package]

  • node module
  • nodejs
  • react
  • react component
npm install --save library-grid-component

https://www.npmjs.com/package/library-grid-component

Prop Default Values
gridItems none Data object
gridItemColour #000000 HEX colour code for text
gridItemFill #ffffff HEX colour code for background
gridItemBorder false True or False value for item border
gridItemBorderColour none HEX colour code border colour
gridItemAlignment left Alignment of the data (left, right, center)

 

const gridData = [
 { data: 'Item' },
 { data: 'Item' },
 { data: 'Item' }
]

<GridComponent
 gridItems={gridData}
 gridItemColour="#ffffff"
 gridItemFill="#2bbde0"
 gridItemBorder={true}
 gridItemBorderColour="#2e3c54"
 gridItemAlignment="center" />

Bronson Dunbar

I'm a WordPress fanatic, a fan of React & AWS and a Sass magician! I also enjoy capturing moments through the lens of my Canon https://adobe.ly/2HkE1SZ

Leave a Reply

Your email address will not be published. Required fields are marked *