[![Build status](https://travis-ci.org/PolymerElements/paper-input.svg?branch=master)](https://travis-ci.org/PolymerElements/paper-input) _[Demo and API docs](https://elements.polymer-project.org/elements/paper-input)_ ##<paper-input> Material design: [Text fields](https://www.google.com/design/spec/components/text-fields.html) `` is a single-line text field with Material Design styling. ```html ``` It may include an optional error message or character counter. ```html ``` It can also include custom prefix or suffix elements, which are displayed before or after the text input itself. In order for an element to be considered as a prefix, it must have the `prefix` attribute (and similarly for `suffix`). ```html
$
``` A `paper-input` can use the native `type=search` or `type=file` features. However, since we can't control the native styling of the input (search icon, file button, date placeholder, etc.), in these cases the label will be automatically floated. The `placeholder` attribute can still be used for additional informational text. ```html ``` See `Polymer.PaperInputBehavior` for more API docs. ### Focus To focus a paper-input, you can call the native `focus()` method as long as the paper input has a tab index. ### Styling See `Polymer.PaperInputContainer` for a list of custom properties used to style this element. ##<paper-input-char-counter> `` is a character counter for use with ``. It shows the number of characters entered in the input and the max length if it is specified. ```html ``` ### Styling The following mixin is available for styling: | Custom property | Description | Default | | --- | --- | --- | | `--paper-input-char-counter` | Mixin applied to the element | `{}` | ##<paper-input-container> `` is a container for a `