paper-input

A Material Design text field

  • Owner: PolymerElements/paper-input
  • Platform:
  • License::
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Published on NPM
Build status
Published on webcomponents.org

<paper-input>

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

See: Documentation,
Demo.

Usage

Installation

npm install --save @polymer/paper-input

In an html file

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

In a Polymer 3 element

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

class SampleElement extends PolymerElement {
  static get template() {
    return html`
      <paper-input always-float-label label="Floating label"></paper-input>
    `;
  }
}
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-input
cd paper-input
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

Main metrics

Overview
Name With OwnerPolymerElements/paper-input
Primary LanguageJavaScript
Program languageHTML (Language Count: 2)
Platform
License:
所有者活动
Created At2015-04-21 00:40:05
Pushed At2025-03-11 00:06:45
Last Commit At2021-06-28 13:00:51
Release Count79
Last Release Namev3.2.0 (Posted on )
First Release Namev0.8.0 (Posted on )
用户参与
Stargazers Count129
Watchers Count23
Fork Count160
Commits Count841
Has Issues Enabled
Issues Count419
Issue Open Count100
Pull Requests Count222
Pull Requests Open Count19
Pull Requests Close Count61
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private