1.0.0 • Published 9 years ago

flex-box v1.0.0

Weekly downloads
12
License
ISC
Repository
github
Last release
9 years ago

<flex-box>

A Custom Element to make the basics of flexbox easier to use

Usage

  <flex-box axis="y">
    <header></header>
    <section flex></section>
    <footer></footer>
  </flex>

Attributes

axis

Controls direction of layout. axis="x" for horizontal layout, axis="y" for vertical layout (default)

fill

The <flex-box> element will size itself to width: 100% and height: 100%. Useful for top-level layout.

flex

Place this attribute on direct children to make them flex to take up available excess width.