
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
labeled-switch-material-ui
Advanced tools
A material-ui component which implements a iOS like switch with a label on each side
A material-ui component which implements a iOS like switch with a label on each side
You can access the storybook for this component here.
The component accepts the props defined bellow in the table.
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| aspectRatioSwitch | number | no | 2 | The width/height ratio of the switch |
| defaultKnobOnLeft | boolean | no | false | The initial position of the knob |
| disabled | boolean | no | false | The component is disabled |
| knobOnLeft | boolean | no | false | If true, the knob is on the left, otherwise on the right |
| knobSize | number | no | 18 | The size of the knob |
| labelLeft | string | yes | - | The label on the left of the switch |
| labelRight | string | yes | - | The label on the right of the switch |
| onChange | (knobOnLeft: boolean) => void | no | undefined | The callback function called when the knob position is changed |
| style | CSSProperties | no | undefined | The style applied to the container |
| styleLabelLeft | CSSProperties | no | undefined | The style applied to the label on left |
| styleLabelRight | CSSProperties | no | undefined | The style applied to the label on right |
| styleSwitch | CSSProperties | no | undefined | The style applied to the switch |
| LabeledSwitchMaterialUi uses | Material-ui | React |
|---|---|---|
| 1.0.x | 3.6.0 | 16.6.3 |
| 1.1.x | 3.9.2 | 16.8.1 |
| 1.2.x | 3.9.3 | 16.8.6 |
| 2.0.x | 4.0.2 | 16.8.6 |
| 2.1.x | 4.2.0 | 16.8.6 |
| 3.0.x | 4.2.1 | 16.8.6 |
| 3.1.x | 4.3.3 | 16.9.0 |
| 3.2.x | 4.9.0 | 16.9.0 |
| 3.3.x | 4.9.7 | 16.9.0 |
| 3.4.x | 4.10.2 | 16.9.0 |
| 3.5.x | 4.11.0 | 16.9.0 |
| 3.6.x | 4.11.3 | 16.9.0 or 17.0.0 |
| 3.7.x | 4.12.3 | 16.9.0 or 17.0.0 |
| 4.0.x | 5.10.17 | >=18.0.0 |
| 4.1.x | 5.14.20 | >=18.0.0 |
The base component which allows to create read-only or creatable select components for selecting only one or more values:
import * as React from 'react';
import LabeledSwitchMaterialUi from 'labeled-switch-material-ui';
class App extends React.Component {
render() {
return (
<div className="App">
<LabeledSwitchMaterialUi
labelLeft="Use numbers"
labelRight="Use strings"
onChange={this.handleChange}
/>
</div>
);
}
handleChange = (knobOnLeft: boolean) => {
console.log(knobOnLeft);
};
}
export default App;
FAQs
A material-ui component which implements a iOS like switch with a label on each side
We found that labeled-switch-material-ui 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.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.