paper-checkbox | Vaadin

A Material Design checkbox

Published on NPM Build status Published on


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.

See: Documentation, Demo.



npm install --save @polymer/paper-checkbox

In an HTML file

    <script type="module">
      import '@polymer/paper-checkbox/paper-checkbox.js';
    <paper-checkbox checked>Checked</paper-checkbox>
    <paper-checkbox disabled>Disabled</paper-checkbox>

In a Polymer 3 element

import {PolymerElement} from '@polymer/polymer/polymer-element.js';
import {html} from '@polymer/polymer/lib/utils/html-tag.js';

import '@polymer/paper-checkbox/paper-checkbox.js';

class ExampleElement extends PolymerElement {
  static get template() {
    return html`
      <paper-checkbox checked>Checked</paper-checkbox>
      <paper-checkbox disabled>Disabled</paper-checkbox>

customElements.define('example-element', ExampleElement);


If you want to send a PR to this element, here are the instructions for running the tests and demo locally:


git clone
cd paper-checkbox
npm install
npm install -g polymer-cli

Running the demo locally

polymer serve --npm

Running the tests

polymer test --npm


Link to this version
ImportedReleased 20 September 2018BSD 3-clause "New" or "Revised" License
Framework Support
Polymer 3.0+
Also supported:
Polymer 1 (3.0.1)Polymer 2 (2.0.4)
Browser Independent
Install with
npm install @polymer/paper-checkbox"@3.1.0"
Run the above npm command in your project folder. If you have any issues installing, please contact the author.
Release notes - Version 3.1.0


  • @polymer/polymer#^3.0.0
  • @polymer/iron-checked-element-behavior#^3.0.0-pre.26
  • @polymer/paper-behaviors#^3.0.0-pre.27
  • @polymer/paper-ripple#^3.0.0-pre.26
  • @polymer/paper-styles#^3.0.0-pre.26
  • @polymer/iron-a11y-keys-behavior#^3.0.0-pre.26