Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-button-spark

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-button-spark

A basic button for Ember Sparks.

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

{{button-spark}}

A replacement for <button>

http://www.ember-sparks.com/


Installation and usage

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!"}}

Properties

NameTypeDefaultDescription
labelstringnullThe text inside the button. This can also be set as a positional param ({{button-spark "Hello!"}})
loadingbooleanfalseSet this to true when performing an async action to show that it's waiting.
disabledbooleanfalseSet this to true to prevent the user from being able to click the button.
loadingComponentstringbutton-spark/loading-indicatorThe name of the component to use for the loading indicator.

Actions

NameDescription
onClickTriggers when the user clicks the button

Block version

You can set an icon for your button using the block version.

{{#button-spark}}
  <svg></svg>
{{/button-spark}}

Theming

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;
    }
    

Contributing

Check out the guidelines at http://ember-sparks.com/docs#contribute

Keywords

FAQs

Package last updated on 26 Jan 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc