Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-layouts

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-layouts

React UI Library for Layouts

  • 0.0.13
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by150%
Maintainers
1
Weekly downloads
 
Created
Source

react-layouts

React UI Layout Library

Docs - http://bhargav175.github.io/react-layouts/

Create Flexboxes easily using Flexbox and FlexItem elements which bring inline styles into play and expose a style prop to customize.

##Installation npm install react-layouts

Usage

import Layouts from 'react-layouts/lib/index';
let {FlexBox, FlexItem} from Layouts;

Props

###FlexBox

  1. flexDirection
  2. flexWrap
  3. style

###FlexItem

  1. style

Examples

Flex type = Row

<FlexBox  flexDirection='row' flexWrap='nowrap' style={{
			     	height:'100px',
			     	backgroundColor:colors.greyLight,
			     	padding: '50px'
			     }} >
			<FlexItem flexVal='5' style={{ background :  colors.blue }}/>
			<FlexItem flexVal='6' style={{ background :  colors.indigo }}/>
			<FlexItem  style={{ background :  colors.teal }}/>
	 </FlexBox>;
	 

Flex type = Column

<FlexBox style={{
			     	marginTop:'10px',
			     	height:400
			     }} flexDirection='column' >
			<FlexItem style={{ background :  colors.orange}}/>
			<FlexItem style={{ background :  colors.pink }}/>
			<FlexItem style={{ background :  colors.yellow }}/>
	</FlexBox>;
	

Flex type = nested

<FlexBox style={{
			     	marginTop:'10px',
			     	height:400
			     }} flexDirection='row'>
		 	<FlexItem >

		      <FlexBox style={{
						     	height:400
						     }}  flexDirection ='column' >
						<FlexItem style={{ background :  colors.indigo}}/>
						<FlexItem style={{ background :  colors.greyLight }}/>
						<FlexItem style={{ background :  colors.lightBlue }}/>
					</FlexBox>

			</FlexItem>
  	<FlexItem style={{ background :  colors.orange}}/>
	   	<FlexItem style={{ background :  colors.yellow }}/>
  </FlexBox>;

Keywords

FAQs

Package last updated on 06 Dec 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc