DOM
DOM class and style helpers.
classNames
Join conditional class names — strings, arrays, and { className: condition } objects.
addClassName / removeClassName
Add or remove classes on an element.
addStyles / removeStyles / getStyles
Inline style helpers.
getPadding
Read the computed padding of an element as numbers.
isHidden
Whether an element (or its content) takes no visible space.
Demo
Toggle the conditions and see classNames build the class string, then apply it live to the box:
Loading...
