0.0.3 • Published 6 years ago

@polymer/paper-text-field v0.0.3

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
6 years ago

Build Status

Demo and API Docs

##<paper-text-field>

Material design: Text fields

<paper-text-field> is a single-line text field with Material Design styling. Unlike <paper-input> it does not contain a native <input> field, so it cannot be used in native forms, or with any of the native <input> type=... attributes.

<paper-text-field label="Input label"></paper-text-field>

See Polymer.PaperTextFieldBehavior for more API docs.

Styling

The following custom properties are available for styling:

Custom propertyDescriptionDefault
--paper-text-field-colorLabel and underline color when the focus is not focused--secondary-text-color
--paper-text-field-focus-colorLabel and underline color when the input is focused--primary-color
--paper-text-field-input-colorInput foreground text color--primary-text-color
--paper-text-field-disabled-opacityOpacity of the element when disabled0.33
--paper-text-field-disabled-underlineBorder style of the underline when disabled1px dashed

##<paper-password-field>

Material design: Text fields

<paper-text-field> is a single-line text field with Material Design styling. Unlike <paper-input> it does not contain a native <input> field, so it cannot be used in native forms, or with any of the native <input> type=... attributes.

<paper-text-field label="Input label"></paper-text-field>

See Polymer.PaperTextFieldBehavior for more API docs.

Styling

The following custom properties are available for styling:

Custom propertyDescriptionDefault
--paper-text-field-colorLabel and underline color when the focus is not focused--secondary-text-color
--paper-text-field-focus-colorLabel and underline color when the input is focused--primary-color
--paper-text-field-input-colorInput foreground text color--primary-text-color
--paper-text-field-disabled-opacityOpacity of the element when disabled0.33
--paper-text-field-disabled-underlineBorder style of the underline when disabled1px dashed

##Polymer.PaperTextFieldBehavior

Use Polymer.PaperTextFieldBehavior to implement a paper-text-field like input, that controls a floating UI label.