Null Pointer Micromanagement
Have ideas to improve npm?Join in the discussion! »

react-style-classes
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

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) } />

Install

npm i react-style-classes

DownloadsWeekly Downloads

314

Version

2.0.3

License

MIT

Unpacked Size

5.17 kB

Total Files

9

Last publish

Collaborators

  • avatar