Skip to content
potchPublic

About

A Custom Element to aid usage of flexbox

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages