Skip to content

Latest commit

 

History

History
27 lines (14 loc) · 573 Bytes

File metadata and controls

27 lines (14 loc) · 573 Bytes

CyclicMaterials util-combine-class-names API

combineClassNames(classNames)

Returns a trimmed string of the combined class names. Class names can be either strings or arrays of strings.

Example:

combineClassNames(`my-class`, `my-other-class`, [`first`, `second`])
// `myclass my-other-class first second`

Arrays can be nested.

Arguments:

  • classNames :: Array|String Any number of arguments of class names.

Return:

(String) The combined class names.