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

ember-toggle-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-toggle-spark

A sexier checkbox, built with Ember Sparks.

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

{{toggle-spark}}

My cool Ember Spark! Edit this text in the README.md

http://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!

{{toggle-spark}}

Properties

NameTypeDefaultDescription
onbooleanfalseDetermines whether the toggle in on (true) or off (false)
disabledbooleanfalseDetermines whether the user can interact with the toggle or not.

Actions

NameDescription
onChangeTriggers when the user clicks the toggle.

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.

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

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