You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

super-simple-flex-grid-react

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

super-simple-flex-grid-react

A react super simple flex grid

Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
4
300%
Maintainers
1
Weekly downloads
 
Created
Source

Coverage Status Build Status

super-simple-flex-grid-react

A react implementation of the Super Simple Flex Grid

Demo

Installing

$ npm i super-simple-flex-grid

Usage

import { FlexRow, FlexCell } from 'node_modules/super-simple-flex-grid-react/FlexGrid';

<FlexRow>
  <FlexCell grow={2}>
    Cell Grow 2
  </FlexCell>
  <FlexCell center customClass={exampleClass}>
    Center
  </FlexCell>
  <FlexCell grow={2}>
    Cell Grow 2
  </FlexCell>
</FlexRow>

Properties

ComponentPropTypeDescription
GridRowchildrenanyChild <FlexCell /> components
customClassstringCustom class
ComponentPropTypeDescriptionCSS
GridCellchildrenanycontent of cells
customClassboolcustom class
centerboolcenterjustify-content: center; align-items: center;
centerHboolcenter horizontallyjustify-content: center
centerVboolcenter verticallyalign-items: center
startHboolstart horizontallyjustify-content: flex-start
endHboolend horizontallyjustify-content: flex-end
startVboolstart verticallyalign-items: flex-start
endVboolend verticallyalign-items: flex-end
spaceAroundboolspace aroundjustify-content: space-around
spaceBetweenboolspace betweenjustify-content: space-between
growintgrowflex-grow: x
shrinkboolshrinkflex-shrink: 1; flex-grow: 0; flex-basis: inherit;
ellipsisboolellipse textoverflow: hidden [^1]
noMarginboolno marginmargin: 0 !important

[^1] Ellipsis prop also adds a child div that contains the following CSS:

white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;

Tech

Super-simple-flex-grid-react uses a number of open source projects:

  • Super-simple-flex-grid - super simple flex grid
  • React - view library
  • Webpack - module bundler
  • Babel - javaScript compiler
  • ESLint - lint all the things
  • Tesing
    • Mocha - test framework
    • Chai - testing assertion library
    • Enzyme - testing utility for React
    • istanbul - test coverage generator

Running the tests

$ npm test

License

MIT

FAQs

Package last updated on 20 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts