Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
ember-toggle-spark
Advanced tools
My cool Ember Spark! Edit this text in the README.md
Install the Ember Sparks addon (this component is part of the standard library):
ember install ember-sparks
Now restart your Ember app and drop the component in there!
{{toggle-spark}}
Name | Type | Default | Description |
---|---|---|---|
on | boolean | false | Determines whether the toggle in on (true ) or off (false ) |
disabled | boolean | false | Determines whether the user can interact with the toggle or not. |
Name | Description |
---|---|
onChange | Triggers when the user clicks the toggle. |
To see these examples in action, check out the interactive documentation.
Important! All classes are local in order to avoid naming collisions and unintended CSS side effects. To understand how to style them, check out the Ember Sparks documentation.
.toggle
The container for the toggle. This is where you should set the basic styling that "trickles down" such as height
, width
and border-radius
.
Example:
.toggle {
width: 37px;
height: 40px;
border-radius: 9px;
}
.highlight
The color of the "on"-highlighting.
Example:
.highlight {
background-color: red;
}
.switch
Used to style the actual switch that moves inside the toggle.
Example:
.switch {
width: 10px;
height: 10px;
}
Check out the guidelines at http://ember-sparks.com/docs#contribute
FAQs
A sexier checkbox, built with Ember Sparks.
We found that ember-toggle-spark 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
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.