https://github.com/polymerelements/paper-input
A Material Design text field
https://github.com/polymerelements/paper-input
Last synced: about 1 year ago
JSON representation
A Material Design text field
- Host: GitHub
- URL: https://github.com/polymerelements/paper-input
- Owner: PolymerElements
- Created: 2015-04-21T00:40:05.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2025-03-11T00:06:45.000Z (over 1 year ago)
- Last Synced: 2025-05-13T22:12:09.951Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://www.webcomponents.org/element/PolymerElements/paper-input
- Size: 988 KB
- Stars: 129
- Watchers: 23
- Forks: 160
- Open Issues: 119
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
[](https://www.npmjs.com/package/@polymer/paper-input)
[](https://travis-ci.org/PolymerElements/paper-input)
[](https://webcomponents.org/element/@polymer/paper-input)
## <paper-input>
`` is a single-line text field with Material Design styling.
See: [Documentation](https://www.webcomponents.org/element/@polymer/paper-input),
[Demo](https://www.webcomponents.org/element/@polymer/paper-input/demo/demo/index.html).
## Usage
### Installation
```
npm install --save @polymer/paper-input
```
### In an html file
```html
import '@polymer/paper-input/paper-input.js';
```
### In a Polymer 3 element
```js
import {PolymerElement, html} from '@polymer/polymer';
import '@polymer/paper-input/paper-input.js';
class SampleElement extends PolymerElement {
static get template() {
return html`
`;
}
}
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
```sh
git clone https://github.com/PolymerElements/paper-input
cd paper-input
npm install
npm install -g polymer-cli
```
### Running the demo locally
```sh
polymer serve --npm
open http://127.0.0.1:/demo/
```
### Running the tests
```sh
polymer test --npm
```