3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4 This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6 The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7 Code distributed by Google as part of the polymer project is also
8 subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9 --><html><head><link rel=
"import" href=
"../polymer/polymer.html">
10 <link rel=
"import" href=
"../paper-ripple/paper-ripple.html">
11 <link rel=
"import" href=
"../paper-styles/default-theme.html">
12 <link rel=
"import" href=
"../paper-behaviors/paper-inky-focus-behavior.html">
16 `paper-checkbox` is a button that can be either checked or unchecked. User
17 can tap the checkbox to check or uncheck it. Usually you use checkboxes
18 to allow user to select multiple options from a set. If you have a single
19 ON/OFF option, avoid using a single checkbox and use `paper-toggle-button`
24 <paper-checkbox>label</paper-checkbox>
26 <paper-checkbox checked> label</paper-checkbox>
30 The following custom properties and mixins are available for styling:
32 Custom property | Description | Default
33 ----------------|-------------|----------
34 `--paper-checkbox-unchecked-background-color` | Checkbox background color when the input is not checked | `transparent`
35 `--paper-checkbox-unchecked-color` | Checkbox border color when the input is not checked | `--primary-text-color`
36 `--paper-checkbox-unchecked-ink-color` | Selected/focus ripple color when the input is not checked | `--primary-text-color`
37 `--paper-checkbox-checked-color` | Checkbox color when the input is checked | `--default-primary-color`
38 `--paper-checkbox-checked-ink-color` | Selected/focus ripple color when the input is checked | `--default-primary-color`
39 `--paper-checkbox-checkmark-color` | Checkmark color | `white`
40 `--paper-checkbox-label-color` | Label color | `--primary-text-color`
45 </head><body><dom-module id=
"paper-checkbox">
46 <link rel=
"import" type=
"css" href=
"paper-checkbox.css">
50 <div id=
"checkboxContainer">
51 <paper-ripple id=
"ink" class=
"circle" center=
"" checked$=
"[[checked]]"></paper-ripple>
52 <div id=
"checkbox" class$=
"[[_computeCheckboxClass(checked)]]">
53 <div id=
"checkmark" class$=
"[[_computeCheckmarkClass(checked)]]"></div>
57 <div id=
"checkboxLabel" aria-hidden=
"true"><content></content></div>
62 <script src=
"paper-checkbox-extracted.js"></script></body></html>