Library that provides CSS-in-JS capabilities
import { css } from '@patternfly/react-styles';
import styles from './Button.css';
const Button = ({ isActive, isDisabled, children }) => (
<button
disabled={isDisabled}
className={css(styles.button, isActive && styles.modifiers.active, isDisabled && styles.modifiers.disabled)}
>
{children}
</button>
);
<button disabled="" class="pf-c-button pf-is-disabled">
Hello World
</button>