All Projects → nachoaIvarez → Flexbox React

nachoaIvarez / Flexbox React

Licence: other
Unopinionated, standard compliant flexbox component. No propietary APIs. Nothing but flexbox.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Flexbox React

Grid
This package has moved and renamed
Stars: ✭ 2,079 (+551.72%)
Mutual labels:  layout, flexbox
how-to-css
howtocss.dev
Stars: ✭ 48 (-84.95%)
Mutual labels:  layout, flexbox
Core Layout
Flexbox & CSS-style Layout in Swift.
Stars: ✭ 215 (-32.6%)
Mutual labels:  layout, flexbox
Interfacss
The CSS-inspired styling and layout framework for iOS
Stars: ✭ 92 (-71.16%)
Mutual labels:  layout, flexbox
react-flex-columns
Easy layout columns for React - Using Flexbox under the hood.
Stars: ✭ 18 (-94.36%)
Mutual labels:  layout, flexbox
Flexlayout
FlexLayout adds a nice Swift interface to the highly optimized facebook/yoga flexbox implementation. Concise, intuitive & chainable syntax.
Stars: ✭ 1,342 (+320.69%)
Mutual labels:  layout, flexbox
flexboxes
CSS flexbox framework with pure flexbox grid ability
Stars: ✭ 27 (-91.54%)
Mutual labels:  layout, flexbox
Paralayout
Paralayout is a set of simple, useful, and straightforward utilities that enable pixel-perfect layout in iOS. Your designers will love you.
Stars: ✭ 742 (+132.6%)
Mutual labels:  layout, flexbox
StackViewLayout
Coming soon!
Stars: ✭ 26 (-91.85%)
Mutual labels:  layout, flexbox
griding
🧱 lean grid & responsive for react
Stars: ✭ 18 (-94.36%)
Mutual labels:  layout, flexbox
React Flexview
A powerful React component to abstract over flexbox and create any layout on any browser
Stars: ✭ 276 (-13.48%)
Mutual labels:  layout, flexbox
flexbin
Pure CSS, flexible and gapless image gallery layout like Google Images and 500px.com
Stars: ✭ 93 (-70.85%)
Mutual labels:  layout, flexbox
Allkit
🛠 Async List Layout Kit
Stars: ✭ 40 (-87.46%)
Mutual labels:  layout, flexbox
Flexlib
FlexLib是一个基于flexbox模型,使用xml文件进行界面布局的框架,融合了web快速布局的能力,让iOS界面开发像写网页一样简单快速
Stars: ✭ 1,569 (+391.85%)
Mutual labels:  layout, flexbox
Flexbox
CSS library for easier work with flex boxes
Stars: ✭ 17 (-94.67%)
Mutual labels:  layout, flexbox
Flexml
🚀基于Litho的Android高性能动态业务容器。
Stars: ✭ 225 (-29.47%)
Mutual labels:  layout, flexbox
Flex Layout
Provides HTML UI layout for Angular applications; using Flexbox and a Responsive API
Stars: ✭ 5,705 (+1688.4%)
Mutual labels:  layout, flexbox
Flex Layout Attribute
HTML layout helper based on CSS flexbox specification —
Stars: ✭ 705 (+121%)
Mutual labels:  layout, flexbox
nice-react-layout
Create complex and nice Flexbox-based layouts, without even knowing what flexbox means
Stars: ✭ 70 (-78.06%)
Mutual labels:  layout, flexbox
gymnast
🤸 Configurable grid and layout engine for React
Stars: ✭ 35 (-89.03%)
Mutual labels:  layout, flexbox

This project sunsetting

I created this a relatively long time ago, gave it visibility on the internet and used it in multiple projects, in production, like many of you. Time passed and I can no longer devote time to flexbox-react, so I'm not longer maintaining this repo.

I'm glad for the appearances of other libraries iterating in this concept I created (and I take pride on this) —From material-ui to chakra-ui and even google's native android flexbox layout library.

Thanks to all contributors along the way!

flexbox-react

Build Status NPM Version Downloads Dependency Status License

Intro

Unopinionated, standard compliant flexbox components.

Why

You should not learn any proprietary syntax, classnames or API's for this. If you know how to use flexbox, you know how to use flexbox-react components.

No more <Container>, <SpacedBox>, <Column>, <View>, <Section> or any other arbitrarily named and spec ed components to layout your apps.

No more first={true}, ternary={true}, spaced={true},grouped={true} or any other arbitrarily named and spec ed props to layout your apps.

flexbox-react is agnostic of which post/pre css build flow you have, it works out of the box. It's agnostic to it. You could have all your styling on css files. Or all inlined. This sits just in the middle. It might be a good idea to see your components and know how they are laid out without jumping between css files or arbitrary, layout-exclusive components specifications.

How

No hardcoded, bloated, unnecessary vendor prefixes, by caniuse. Just those your browser needs, based on your userAgent.

No need to import any new stylesheet or to add any styles to your existing stylesheets. It works out of the box, just by using the component.

Install

yarn add flexbox-react
# or
npm install --save flexbox-react

Usage

import Flexbox from 'flexbox-react';

// ...
<Flexbox flexDirection="column" minHeight="100vh">
  <Flexbox element="header" height="60px">
    Header
  </Flexbox>

  <Flexbox flexGrow={1}>
    Content
  </Flexbox>

  <Flexbox element="footer" height="60px">
    Footer
  </Flexbox>
</Flexbox>

Sticky footer!

As you can see, there're some extra props as layout ing helpers. Those are height, minHeight, maxHeight, width, minWidth, maxWidth, padding, paddingTop, paddingRight, paddingBottom, paddingLeft, margin, marginTop, marginRight, marginBottom, and marginLeft. The idea of flexbox-react is to be a complete solution to build layouts. Since, well, flexbox is a complete solution to build layouts. It's all about the sugar. Feel free to create an issue or submit a PR if you think there's room for improvement here!

Semantic HTML tags

If you need to use a tag other than <div> for the layout, like <header> or <section>, you can pass an extra element prop to the <Flexbox /> component:

<Flexbox element="header" height="80px">
  ...
</Flexbox>

which will render to this:

<header style="display: flex; height: 80px;">
  ...
</header>

Props

Take a look at Flexbox PropTypes. No mysteries. As said, you just need to know actual flexbox properties not any proprietary syntax for them. If you're not familiar with flexbox, this is a good starting point.

If TypeScript is your cup of tea, check the type definitions, we support them too.

License

MIT © Ignacio Álvarez

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].