Code Monkey home page Code Monkey logo

paper-toggle-button's Introduction

Build status

Demo and API docs

##<paper-toggle-button>

Material design: Switch

paper-toggle-button provides a ON/OFF switch that user can toggle the state by tapping or by dragging the switch.

Example:

<paper-toggle-button></paper-toggle-button>

Styling

The following custom properties and mixins are available for styling:

Custom property Description Default
--paper-toggle-button-unchecked-bar-color Slider color when the input is not checked #000000
--paper-toggle-button-unchecked-button-color Button color when the input is not checked --paper-grey-50
--paper-toggle-button-unchecked-ink-color Selected/focus ripple color when the input is not checked --dark-primary-color
--paper-toggle-button-checked-bar-color Slider button color when the input is checked --primary-color
--paper-toggle-button-checked-button-color Button color when the input is checked --primary-color
--paper-toggle-button-checked-ink-color Selected/focus ripple color when the input is checked --primary-color
--paper-toggle-button-unchecked-bar Mixin applied to the slider when the input is not checked {}
--paper-toggle-button-unchecked-button Mixin applied to the slider button when the input is not checked {}
--paper-toggle-button-checked-bar Mixin applied to the slider when the input is checked {}
--paper-toggle-button-checked-button Mixin applied to the slider button when the input is checked {}
--paper-toggle-button-label-color Label color --primary-text-color
--paper-toggle-button-label-spacing Spacing between the label and the button 8px

This element applies the mixin --paper-font-common-base but does not import paper-styles/typography.html. In order to apply the Roboto font to this element, make sure you've imported paper-styles/typography.html.

paper-toggle-button's People

Contributors

notwaldorf avatar frankiefu avatar tedium-bot avatar dfreedm avatar bicknellr avatar keanulee avatar rictic avatar abdonrd avatar cdata avatar addyosmani avatar carolirod avatar tjsavage avatar valdrinkoshi avatar garlicnation avatar tyriar avatar ebidel avatar fredj avatar ortham avatar joineral32 avatar

Watchers

Vladimir Iftodi avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.