1000ch / x-flexbox

Web Components which provide Flexbox features.

Home Page:https://1000ch.github.io/x-flexbox/

Repository from Github https://github.com1000ch/x-flexboxRepository from Github https://github.com1000ch/x-flexbox

x-flexbox test

Web Components which provide Flexbox features.

Install

Using npm:

$ npm install x-flexbox

Usage

Import FlexContainer and FlexItem, register them.

<script type="module">
import { FlexContainer, FlexItem } from 'https://unpkg.com/x-flexbox';

customElements.define('flex-container', FlexContainer);
customElements.define('flex-item', FlexItem);
</script>

Put <flex-container> and <flex-item>.

<flex-container flex-direction="column" flex-wrap="wrap">
  <flex-item flex-grow="2"></flex-item>
  <flex-item align-self="stretch"></flex-item>
</flex-container>

License

MIT © Shogo Sensui

About

Web Components which provide Flexbox features.

https://1000ch.github.io/x-flexbox/

License:MIT License


Languages

Language:TypeScript 82.2%Language:HTML 17.8%