1.1.1 • Published 10 months ago

merge-css-class v1.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

Merge CSS Classes

A tiny utility function for merging class names. An alternative library to classnames and clsx with limited functionality.

This npm node module's goal is to do just enough for merging CSS class names. Plan to make the bundle size even smaller, currently, the bundle size is 240B.

Installation

npm i merge-css-class
#or
yarn add merge-css-class

How To Use It

This library only merges the arguments if the expression evaluates to string

let a = true
mergeCssClass(a && 'A', 'B') // => 'A B'
// if the arguments don't evaluate to string, it will be ignored
mergeCssClass(a && 'A', {test: true}, 1) // => 'A'

Feedback

No standard rule, you can ask me through this repository or if you prefer email then please send it to emailpribadiilyas@gmail.com

1.1.1

10 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago