Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

riot-md-mixin-flex

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

riot-md-mixin-flex

A flexbox attribute mixin for Riot.js components.

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

riot-md-mixin-flex Build Status

A flexbox attribute mixin for Riot.js components.

Install

$ npm install --save riot-md-mixin-flex

Setup

For use with other riot-md components, this mixin must be named 'flex'. See riot.mixin for more information.

const riot = require('riot');
const flex = require('riot-md-mixin-flex');

riot.mixin('flex', flex);

Usage

<md-toolbar -dflex -flex />
<!-- //=> <div class="md-toolbar" dflex flex></div> -->

<my-component -flex="2" />
<!-- //=> <div flex="2"></div> -->

See md-flex-layout to make use of these new attributes.

Attributes

-dflex

Appends a dflex attribute to the tag's firstElementChild.

-flex [int]

Appends a flex attribute to the tag's firstElementChild.

Passing a value to -flex will be forwarded to the tag child's attribute.

-flexrow

Appends a flexrow attribute to the tag's firstElementChild.

-acenter

Appends an acenter attribute to the tag's firstElementChild.

-jcenter

Appends a jcenter attribute to the tag's firstElementChild.

License

MIT © Luke Edwards

Keywords

riot

FAQs

Package last updated on 09 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts