Input material

Metro 4 provides simple classes and structures to create input fields in Material Design Style.

About

Designed for using with PhoneGap. Component used special -webkit css rules.

In Metro 4, you can use enhancement version of input control to create input in Material Design Style. To define it, add attribute data-role="materialinput" to HTML input element. You can assign role input to any text inputs: text, password, email, etc.

Metro 4

                    <input type="text" data-role="materialinput"
                        placeholder="Enter your email">
                

Input with label

Metro 4

                    <input type="text" data-role="materialinput"
                        data-label="User email"
                        placeholder="Enter your email">
                

Input with label and informer

Metro 4

                    <input type="text" data-role="materialinput"
                        data-label="User email"
                        data-informer="Enter a valid email address"
                        placeholder="Enter your email">
                

Input with label, informer and icon

Metro 4

                    <input type="text"
                        data-role="materialinput"
                        data-icon="<span class='mif-envelop'>"
                        data-label="User email"
                        data-informer="Enter a valid email address"
                        placeholder="Enter your email">
                

Customize

You can change visual style with special classes attributes: data-cls-component, data-cls-input, data-cls-label, data-cls-informer, data-cls-icon, data-cls-line.

Metro 4

                    <input type="text" data-role="materialinput"
                           placeholder="Enter your email"
                           data-icon="<span class='mif-envelop'>"
                           data-label="User email"
                           data-informer="Enter a valid email address"
                           data-cls-line="bg-cyan"
                           data-cls-label="fg-cyan"
                           data-cls-informer="fg-lightCyan"
                           data-cls-icon="fg-darkCyan"
                    >