Skip to content

potch/flex-box

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Custom Element to aid usage of flexbox

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published