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-button-spark
Advanced tools
A replacement for <button>
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!
{{button-spark "Hello!"}}
Name | Type | Default | Description |
---|---|---|---|
label | string | null | The text inside the button. This can also be set as a positional param ({{button-spark "Hello!"}} ) |
loading | boolean | false | Set this to true when performing an async action to show that it's waiting. |
disabled | boolean | false | Set this to true to prevent the user from being able to click the button. |
loadingComponent | string | button-spark/loading-indicator | The name of the component to use for the loading indicator. |
Name | Description |
---|---|
onClick | Triggers when the user clicks the button |
You can set an icon for your button using the block version.
{{#button-spark}}
<svg></svg>
{{/button-spark}}
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.
.button
Styles the button element.
When it's loading, the .loading
-class is appended to it.
If you've set a label, the .has-label
-class is appended to it (to distinguish it from icon-only buttons.
Example:
.button {
background-color: red;
}
.label
Styles the text inside the button.
Example:
.label {
color: yellow;
}
Check out the guidelines at http://ember-sparks.com/docs#contribute
FAQs
A basic button for Ember Sparks.
The npm package ember-button-spark receives a total of 1 weekly downloads. As such, ember-button-spark popularity was classified as not popular.
We found that ember-button-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.