GithubHelp home page GithubHelp logo

jbetancur / react-flexybox Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 0.0 2.22 MB

Flexbox in React made simple

Home Page: https://react-flexybox-demo.netlify.com/

License: MIT License

JavaScript 100.00%
css demo flex-box flex-items flexbox react react-flexbox

react-flexybox's People

Contributors

dependabot[bot] avatar jbetancur avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

react-flexybox's Issues

[Row] - style is missing height prop

Add height prop to row

const RowStyle = styled(agnosticComponent)`
  box-sizing: border-box;
  display: flex;
  flex: 0 1 auto;
  width: 100%;
  flex-direction: ${props => props.direction};
  flex-wrap: ${props => props.wrap};
  justify-content: ${props => (props.center ? 'center' : props.justifyContent)};
  align-items: ${props => (props.center ? 'center' : props.alignItems)};
  align-content: ${props => props.alignContent};
  ${props => props.debug && 'border: 1px solid red'};
  ${props => props.paddingTop && `padding-top: ${props.paddingTop}`};
  ${props => props.paddingLeft && `padding-left: ${props.paddingLeft}`};
  ${props => props.paddingBottom && `padding-bottom: ${props.paddingBottom}`};
  ${props => props.paddingRight && `padding-right: ${props.paddingRight}`};
  ${props => props.padding && `padding: ${props.padding}`};
  ${props => (props.fill ? 'height: 100%' : props.height)};
`;

[Row] In some cases - props are not being passed down to Cols

Context

if (child && child.type === Col) seems to not always resolve. Which seems to be the problem

Expected Behavior

Row should pass props down to Col Instance components only

This was discovered when using Gatsby 2.0 - but I cannot dupe this in any other app that uses react-flexybox

Create Demo

Aside from Codepen - create a full working demo

[Col] - order/reverse on size

<Row>
   <Col orderXs="1"></Col>
   <Col orderXs="0"></Col>
</Row>

Or reverse

<Row reverseXS reverseSM>
   <Col orderXs="1"></Col>
   <Col orderXs="0"></Col>
</Row>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.