Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.27 KB

README.md

File metadata and controls

38 lines (30 loc) · 1.27 KB

Kontentino - Making social media a piece of cake

react-style-classes by Kontentino

npm NPM

Javascript package for merge arguments of component style classnames or merge another arguments.

Installation

$ npm install react-style-classes or $ yarn add react-style-classes

Usage

import classes from 'react-style-classes';

Example

<div className={ classes("className1", "className2") } />

or use CSS modules

<div className={ classes("className1", "className2", style.container) } />

or even use Array

<div className={ classes("className1", "className2", ['class1', 'class2']) } />

Automatically filters boolean values

<div className={ classes("className1", "className2", isModalVisible && style.modalWrapperVisible) } />