paper-input

A Material Design text field

  • 所有者: PolymerElements/paper-input
  • 平台:
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

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

主要指標

概覽
名稱與所有者PolymerElements/paper-input
主編程語言JavaScript
編程語言HTML (語言數: 2)
平台
許可證
所有者活动
創建於2015-04-21 00:40:05
推送於2025-03-11 00:06:45
最后一次提交2021-06-28 13:00:51
發布數79
最新版本名稱v3.2.0 (發布於 )
第一版名稱v0.8.0 (發布於 )
用户参与
星數129
關注者數23
派生數160
提交數841
已啟用問題?
問題數419
打開的問題數100
拉請求數222
打開的拉請求數19
關閉的拉請求數61
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?