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?
已存档?
是复刻?
已锁定?
是镜像?
是私有?