
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
@anypoint-web-components/anypoint-switch
Advanced tools
A toggle button styled for Material Design and Anypoint platform.
This component has been moved to anypoint-web-components/awc
.
Switches toggle the state of a single setting on or off. They are the preferred way to adjust settings on mobile.
This component is based on Material Design switch and adjusted for Anypoint platform components.
Anypoint web components are set of components that allows to build Anypoint enabled UI in open source projects.
npm install --save @anypoint-web-components/anypoint-switch
<html>
<head>
<script type="module">
import './node_modules/@anypoint-web-components/anypoint-switch/anypoint-switch.js';
</script>
</head>
<body>
<anypoint-switch>on/of</anypoint-switch>
<script>
{
document.querySelector('anypoint-switch').onchange = () => {
// ...
};
}
</script>
</body>
</html>
import { LitElement, html } from 'lit-element';
import '@anypoint-web-components/anypoint-switch/anypoint-switch.js';
class SampleElement extends PolymerElement {
render() {
return html`
<anypoint-switch
.checked="${this.checked}"
@change="${this._switchHandler}">on/off</anypoint-switch>
`;
}
_switchHandler(e) {
this.checked = e.detail.value;
}
}
customElements.define('sample-element', SampleElement);
git clone https://github.com/anypoint-web-components/anypoint-switch
cd anypoint-switch
npm install
npm start
npm test
FAQs
A toggle button styled for Material Design and Anypoint platform.
The npm package @anypoint-web-components/anypoint-switch receives a total of 439 weekly downloads. As such, @anypoint-web-components/anypoint-switch popularity was classified as not popular.
We found that @anypoint-web-components/anypoint-switch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.