All Projects → snikas → react-styled-flexbox

snikas / react-styled-flexbox

Licence: MIT license
A Flexbox React component harnessing the power of styled-components

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-styled-flexbox

React Flexa
Responsive React Flexbox (CSS Flexible Box Layout Module) grid system based heavily on the standard CSS API.
Stars: ✭ 120 (+300%)
Mutual labels:  flex, styled-components, flexbox
Sprite Flex Layout
grid-layout is a layout engine which implements flex, can use in canvas/node-canvas
Stars: ✭ 15 (-50%)
Mutual labels:  flex, flexbox
React Three Flex
💪📦 Flexbox for react-three-fiber
Stars: ✭ 764 (+2446.67%)
Mutual labels:  flex, flexbox
Flexy
Flexy is minimal CSS framework made with Flex
Stars: ✭ 114 (+280%)
Mutual labels:  flex, flexbox
Katana
Katana is CSS Layout System made with Flexbox
Stars: ✭ 57 (+90%)
Mutual labels:  flex, flexbox
React Flexview
A powerful React component to abstract over flexbox and create any layout on any browser
Stars: ✭ 276 (+820%)
Mutual labels:  flex, flexbox
Infinity Css Grid
Fluid Flex Solution for making infinite grid columns.
Stars: ✭ 112 (+273.33%)
Mutual labels:  flex, flexbox
Hedron
A no-frills flexbox grid system for React, powered by styled-components.
Stars: ✭ 847 (+2723.33%)
Mutual labels:  styled-components, flexbox
Flexible Grid
Flexible grid layouts to get you familiar with building within the flexible grid system.(HTML, CSS, SASS, SCSS)
Stars: ✭ 154 (+413.33%)
Mutual labels:  flex, flexbox
Flexulator
A visual flexbox space distribution calculator
Stars: ✭ 171 (+470%)
Mutual labels:  flex, flexbox
flexui
A light UI for C++ with XML and CSS support
Stars: ✭ 21 (-30%)
Mutual labels:  flex, flexbox
flexboxes
CSS flexbox framework with pure flexbox grid ability
Stars: ✭ 27 (-10%)
Mutual labels:  flex, flexbox
Grid
This package has moved and renamed
Stars: ✭ 2,079 (+6830%)
Mutual labels:  styled-components, flexbox
Waffle Grid
An easy to use flexbox grid system.
Stars: ✭ 602 (+1906.67%)
Mutual labels:  flex, flexbox
Griz
Grid library for React; Rescue the cat
Stars: ✭ 99 (+230%)
Mutual labels:  styled-components, flexbox
Lbrnmeituan
ReactNative 仿美团项目
Stars: ✭ 84 (+180%)
Mutual labels:  flex, flexbox
React Styled Flexboxgrid
Grid system based on styled-components and flexbox for React
Stars: ✭ 515 (+1616.67%)
Mutual labels:  styled-components, flexbox
Flex.css
flex.css is declarative layout which is compatible with wechat, UC, webview and other main-stream mobile browser and surpports react, vue, angular.
Stars: ✭ 1,537 (+5023.33%)
Mutual labels:  flex, flexbox
Core Layout
Flexbox & CSS-style Layout in Swift.
Stars: ✭ 215 (+616.67%)
Mutual labels:  flex, flexbox
sass-flexbox
Manage Flexbox in Sass easily.
Stars: ✭ 40 (+33.33%)
Mutual labels:  flex, flexbox

react-styled-flexbox

Effortlessly add flexbox styles to your components using minimal code.

Build Status

Installation

NPM

npm install react-styled-flexbox --save

Yarn

yarn add react-styled-flexbox

API

import FlexContainer from 'react-styled-flexbox';

<FlexContainer>
  <div>I'm on the left!</div>
  <div>I'm on the right!</div>
</FlexContainer>

By default FlexContainer will render a div with 'display: flex' and default flexbox style rules.

If you want to add additional flexbox rules to your FlexContainer you can pass in options set to true.

<FlexContainer directionColumn={true}>
  <div>I'm on the top!</div>
  <div>I'm underneath!</div>
</FlexContainer>

Options

inline-flex:

  • inline

flex-direction:

  • directionRowReverse
  • directionColumn
  • directionColumnReverse

flex-wrap:

  • wrapWrap
  • wrapWrapReverse

align-items:

  • itemsFlexStart
  • itemsFlexEnd
  • itemsCenter
  • itemsBaseline

align-content:

  • contentFlexStart
  • contentFlexEnd
  • contentCenter
  • contentSpaceBetween
  • contentSpaceAround

justify-content:

  • justifySpaceBetween
  • justifySpaceAround
  • justifyFlexEnd
  • justifyCenter

If you are not familiar with the flexible box model please review the MDN docs

License

MIT License

Copyright (c) 2017 Raycom Media, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].