@polymer/paper-swatch-picker

WebJar for @polymer/paper-swatch-picker

License

License

BSD 3-Clause
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

polymer__paper-swatch-picker
Last Version

Last Version

3.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

@polymer/paper-swatch-picker
WebJar for @polymer/paper-swatch-picker
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/PolymerElements/paper-swatch-picker

Download polymer__paper-swatch-picker

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/polymer__paper-swatch-picker/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>polymer__paper-swatch-picker</artifactId>
    <version>3.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/polymer__paper-swatch-picker/
implementation 'org.webjars.npm:polymer__paper-swatch-picker:3.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/polymer__paper-swatch-picker/
implementation ("org.webjars.npm:polymer__paper-swatch-picker:3.0.1")
'org.webjars.npm:polymer__paper-swatch-picker:jar:3.0.1'
<dependency org="org.webjars.npm" name="polymer__paper-swatch-picker" rev="3.0.1">
  <artifact name="polymer__paper-swatch-picker" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='polymer__paper-swatch-picker', version='3.0.1')
)
libraryDependencies += "org.webjars.npm" % "polymer__paper-swatch-picker" % "3.0.1"
[org.webjars.npm/polymer__paper-swatch-picker "3.0.1"]

Dependencies

compile (7)

Group / Artifact Type Version
org.webjars.npm : polymer__paper-listbox jar [3.0.0-pre.26,4)
org.webjars.npm : polymer__paper-icon-button jar [3.0.0-pre.26,4)
org.webjars.npm : polymer__iron-flex-layout jar [3.0.0-pre.26,4)
org.webjars.npm : polymer__iron-iconset-svg jar [3.0.0-pre.26,4)
org.webjars.npm : polymer__polymer jar [3.0.0,4)
org.webjars.npm : polymer__paper-menu-button jar [3.0.0-pre.26,4)
org.webjars.npm : polymer__paper-item jar [3.0.0-pre.26,4)

Project Modules

There are no modules declared in this project.

Published on NPM Build status Published on webcomponents.org

<paper-swatch-picker>

<paper-swatch-picker> is a simple color picker element that will allow you to choose one of the Material Design colors from a list of available swatches.

See: Documentation, Demo.

Usage

Installation

npm install --save @polymer/paper-swatch-picker

In an html file

<html>
  <head>
    <script type="module">
      import '@polymer/paper-swatch-picker/paper-swatch-picker.js';
    </script>
  </head>
  <body>
    <paper-swatch-picker></paper-swatch-picker>
    <paper-swatch-picker column-count=5 color-list='["#65a5f2", "#83be54", "#f0d551", "#e5943c", "#a96ddb"]'></paper-swatch-picker>
  </body>
</html>

In a Polymer 3 element

import {PolymerElement, html} from '@polymer/polymer';
import '@polymer/paper-swatch-picker/paper-swatch-picker.js';

class SampleElement extends PolymerElement {
  static get template() {
    return html`
      <paper-swatch-picker></paper-swatch-picker>
      <paper-swatch-picker color="{{selectedColor}}"></paper-swatch-picker>
      <paper-swatch-picker column-count=5 color-list='["#65a5f2", "#83be54", "#f0d551", "#e5943c", "#a96ddb"]'></paper-swatch-picker>
    `;
  }
}
customElements.define('sample-element', SampleElement);

Contributing

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

Installation

git clone https://github.com/PolymerElements/paper-swatch-picker
cd paper-swatch-picker
npm install
npm install -g polymer-cli

Running the demo locally

polymer serve --npm
open http://127.0.0.1:<port>/demo/

Running the tests

polymer test --npm

Published on NPM Build status Published on webcomponents.org

<paper-swatch-picker>

<paper-swatch-picker> is a single-line text field with Material Design styling.

See: Documentation, Demo.

Usage

Installation

npm install --save @polymer/paper-swatch-picker

In an html file

<html>
  <head>
    <script type="module">
      import '@polymer/paper-swatch-picker/paper-swatch-picker.js';
    </script>
  </head>
  <body>
    <paper-swatch-picker always-float-label label="Floating label"></paper-swatch-picker>
  </body>
</html>

In a Polymer 3 element

import {PolymerElement, html} from '@polymer/polymer';
import '@polymer/paper-swatch-picker/paper-swatch-picker.js';

class SampleElement extends PolymerElement {
  static get template() {
    return html`
      <paper-swatch-picker always-float-label label="Floating label"></paper-swatch-picker>
    `;
  }
}
customElements.define('sample-element', SampleElement);

Contributing

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

Installation

git clone https://github.com/PolymerElements/paper-swatch-picker
cd paper-swatch-picker
npm install
npm install -g polymer-cli

Running the demo locally

polymer serve --npm
open http://127.0.0.1:<port>/demo/

Running the tests

polymer test --npm
org.webjars.npm

Versions

Version
3.0.1