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 - npm Package Compare versions

Comparing version 0.0.9 to 0.0.11

dev/index.html

6

package.json
{
"name": "react-layouts",
"version": "0.0.9",
"version": "0.0.11",
"description": "React UI Library for Layouts",

@@ -25,2 +25,3 @@ "main": "lib/index.js",

"css-loader": "^0.23.0",
"extract-text-webpack-plugin": "^0.9.1",
"jest": "^0.1.40",

@@ -42,3 +43,4 @@ "jsdom": "^7.1.1",

"test": "echo \"Error: no test specified\" && exit 1",
"build": "babel ./src --out-dir ./lib",
"build": "rm -rf lib && babel ./src --out-dir ./lib",
"docs": "npm run build && webpack --config webpack.production.config.js --progress --colors ",
"dev": "webpack-dev-server -d --hot --eval --progress --colors"

@@ -45,0 +47,0 @@ },

# react-layouts
React UI Layout Library
In Progress
Not Ready for Dev Use.
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>;

Sorry, the diff of this file is not supported yet

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