Automatic HTML5 validation on-blur.
You can use use-html5-validation
prop to disable the default HTML5 validation.
This email is invalid
This username is available
This email is invalid
This username is available
# Types and states
You can have a message too
# Icons
# Validation
Automatic HTML5 validation on-blur.
You can use use-html5-validation
prop to disable the default HTML5 validation.
# Password
You can use the password-reveal
prop to add a button that reveals password.
# Lazy
You could make the binding lazy, comparable with v-model.lazy
, see .lazy modifier. As v-model.lazy
won't work with custom components like Buefy, you could use this property.
Value is:
# Sizes
Name | Description | Type | Values | Default |
---|---|---|---|---|
v-model | Binding value | String, Number | — | — |
lazy | Makes the binding lazy. Note: v-model.lazy won't work | Boolean | — | false |
type | Input type, like native | String | Any native input type, and textarea | text |
size | Vertical size of input, optional | String | is-small , is-medium , is-large | — |
expanded | Makes input full width when inside a grouped or addon field | Boolean | — | false |
password-reveal | Add the reveal password functionality | Boolean | — | false |
loading | Add the loading state to the input | Boolean | — | false |
icon-pack | Icon pack to use | String | mdi , fa , fas , far , fad , fal | mdi |
icon | Icon name to be added | String | — | — |
icon-right | Icon name to be added on the right side | String | — | — |
icon-clickable | Make the icon clickable | Boolean | — | false |
icon-right-clickable | Make the icon right clickable | Boolean | — | false |
maxlength | Same as native maxlength , plus character counter | String, Number | — | — |
has-counter | Show character counter when maxlength prop is passed | Boolean | — | true |
custom-class | CSS classes to be applied on input | String | — | — |
validation-message | The message which is shown when a validation error occurs | String | — | — |
Any native attribute | — | — | — | — |
You can use these variables to customize this component.
Name | Default |
---|---|
Bulma variables | Link |
This page is open source. Noticed a typo or something's unclear?