A tiny(146B) module for making className

One Spaces

A tiny(146B) module for making className :sunglasses:

Installation

npm (commonjs)

npm install one-spaces

browser (iife)

Please download this file.

And embed script tag in your document.

<script src="./dist/one-spaces.js"></script>

Example

arguments

OneSpaces('cls1', 'cls2');

array

OneSpaces(['cls1', 'cls2']);

exclude falsy

OneSpaces(null, true && 'cls1', false && 'cls2');

mix

OneSpaces('cls1', false && 'none', ['cls2']);

License

MIT © Troy Tae

我来评几句
登录后评论

已发表评论数()

相关站点

+订阅
热门文章