
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Automatic injection of css Classes In Components through props.
The 2.0 (organized) version is here. I've started to clean repo and create examples. :-)
npm install --save class-ic
Style your components using BEM methodology with helper mixins:
@import "~class-ic/dist/sass";
@include block(button){
background-color: gray;
@include modifier(large){
width: 100%;
}
// the second param is the prop name
@include modifier(success, color){
background-color: green;
}
@include element(text){
color: black;
// you can group modifiers in a prop, passing true to second param
@include prop(color){
@include modifier(warning, true){
color: yellow;
}
@include modifier(danger, true){
color: red;
}
}
}
}
Create your React component, import your sass through css-modules and create a Classic Component:
import React, { Component } from "react";
import classic from "class-ic";
import styles from "./Button.module.scss";
class Button extends Component {
render() {
return (
<div classicBlock>
<p classicElement="text">{this.props.children}</p>
</div>
);
}
}
export default classic(Button, styles);
When you will use your new created component:
<Button large color="danger">
My Class-ic Button
</Button>
The api above create a component that accept this props:
And the component itself has:
We use SemVer for versioning. For the versions available, see the tags on this repository.
This project is licensed under the MIT License - see the LICENSE file for details
Inspired by:
FAQs
Automatic injection of CSS Classes In React Components through props
We found that class-ic demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.