Vue Input - Material
The MaterialInput
helps you to create different form elements.
Demo
Props Information
Name | Type | Default | Description |
---|---|---|---|
id* | String | Used to add id to the MaterialInput component. It is a required prop. | |
type | String | text | Used to set the type for the MaterialInput component. |
placeholder | String | Used to set placeholder to MaterialInput component. | |
value | String | Used to set the value for the MaterialInput value attribute. | |
size | 'default', 'sm''md''lg' | default | Change the MaterialInput size. |
error | bool | false | Change the MaterialInput border color to red, its useful when displaying the error messages. |
success | bool | false | Change the MaterialInput border color to green, its useful when displaying the success messages. |
disabled | bool | false | Used to disable the MaterialInput . |
isRequired | bool | false | Used to make the MaterialInput required. |
inputClass | string | Used to add icon to the MaterialInput . | |
icon | string | Used to add custom class for the MaterialInput 's Input. | |
HTML5 Attributes | You can also use HTML5 input attributes for theMaterialInput . |