Skip to content
 
 

Repository files navigation

classies

Build Status Greenkeeper badge

Simple css class string builder without shenanigans.

install

npm install classies

usage

const cls = require('classies')
const isSelected = true

let classString = cls({
  foo: true,
  bar: someCondition,
  [classString]: true,
  isSelected,
}, separator) // separator defaults to ' '

perfomance

see jsperf

Latest version was done by @isiahmeadows and @gamb.

If you have a better version, feel free to submit a PR.

releases

Releases are automated by pr-release

Debugging

This is to debug pr-release

Non admin contributor

This edit comes from a user who wasn't an admin

About

Simple css class builder

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages