This package has been deprecated

Author message:

Please use package class-set instead

classset

0.0.1 • Public • Published

What is "classSet"?

classSet is a Javascript library to create CSS class strings out of arbitrary parameters.

This is a conceptual extension of React's classSet.

The primary difference is that you can supply an arbitrary number of arguments with mixed types, and each will be evaluated.

Example

var classSet = require('classSet');
classes = classSet({ one: true, two: true, nope: false }, "three", null, "four");
// classes is now "one two three four"

Installation

via npm:

$ npm install classSet

classSet is licensed under MIT.

/classset/

    Package Sidebar

    Install

    npm i classset

    Weekly Downloads

    14

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • awnist