To create text input element use this component.
Code:
<fvInput v-model="input" />
export default {
data () {
return {
input: undefined
}
}
}
Examples:
Notes:
- You can use .fv-input class to custom element and set .placeholder class to child element for placeholder style.
- This component wrapped to normal html input element, so custom events and attributes are available on this.
API:
Name | Type | Default | Description |
---|
value | | --- | |
required | | false | Does input required to fill? Also with function type you can pass function with one argument (fn(value){}) and return Boolean value. |
Name | Params | Description |
---|
input | | Fired when component request to change value. |
Name | Description |
---|
.fv-size-xs | |
.fv-size-sm | |
.fv-size-md | Medium size (actived by default) |
.fv-size-lg | |
.fv-size-xl | |