Name Last Update
..
demo Loading commit data...
test Loading commit data...
.bower.json Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
README.md Loading commit data...
bower.json Loading commit data...
index.html Loading commit data...
metadata.html Loading commit data...
paper-checkbox.html Loading commit data...

README.md

Build Status

Demo and API Docs

##<paper-checkbox>

Material design: Checkbox

paper-checkbox is a button that can be either checked or unchecked. User can tap the checkbox to check or uncheck it. Usually you use checkboxes to allow user to select multiple options from a set. If you have a single ON/OFF option, avoid using a single checkbox and use paper-toggle-button instead.

Example:

<paper-checkbox>label</paper-checkbox>

<paper-checkbox checked> label</paper-checkbox>

Styling

The following custom properties and mixins are available for styling:

Custom property Description Default
--paper-checkbox-unchecked-background-color Checkbox background color when the input is not checked transparent
--paper-checkbox-unchecked-color Checkbox border color when the input is not checked --primary-text-color
--paper-checkbox-unchecked-ink-color Selected/focus ripple color when the input is not checked --primary-text-color
--paper-checkbox-checked-color Checkbox color when the input is checked --default-primary-color
--paper-checkbox-checked-ink-color Selected/focus ripple color when the input is checked --default-primary-color
--paper-checkbox-checkmark-color Checkmark color white
--paper-checkbox-label-color Label color --primary-text-color
--paper-checkbox-label-spacing Spacing between the label and the checkbox 8px
--paper-checkbox-error-color Checkbox color when invalid --google-red-500