Skip to content

Repository files navigation

Published on NPMBuild statusPublished 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><scripttype="module">import'@polymer/paper-input/paper-input.js';</script></head><body><paper-inputalways-float-labellabel="Floating label"></paper-input></body></html>

In a Polymer 3 element

import{PolymerElement,html}from'@polymer/polymer';import'@polymer/paper-input/paper-input.js';classSampleElementextendsPolymerElement{staticgettemplate(){returnhtml`<paper-inputalways-float-labellabel="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

About

A Material Design text field

Resources

Contributing

Stars

127 stars

Watchers

22 watching

Forks

Releases

Packages

Used by

Contributors

Languages