Input
Get user Input. Use with Field to access all functionalities
Class props
Input component
Get user Input. Use with Field to access all functionalities
html
<o-input></o-input>Props
| Prop name | Description | Type | Values | Default |
|---|---|---|---|---|
| autocomplete | - | From config: input: { | ||
| autosize | - | false | ||
| clearIcon | - | From config: input: { | ||
| clearable | - | From config: input: { | ||
| counter | - | From config: input: { | ||
| customValidity | - | "" | ||
| debounce | - | From config: autocomplete: { | ||
| disabled | - | false | ||
| expanded | - | false | ||
| icon | - | From config: input: { | ||
| iconClickable | - | false | ||
| iconPack | - | From config: input: { | ||
| iconRight | - | From config: input: { | ||
| iconRightClickable | - | false | ||
| iconRightVariant | - | |||
| id | - | Default function (see source code) | ||
| maxlength | - | |||
| v-model | - | |||
| override | - | |||
| passwordReveal | - | false | ||
| placeholder | - | |||
| rounded | - | false | ||
| size | - | From config: input: { | ||
| statusIcon | - | From config: { | ||
| type | - | "text" | ||
| useHtml5Validation | - | From config: { | ||
| variant | - | From config: input: { |
Events
| Event name | Properties | Description |
|---|---|---|
| update:modelValue | value string | number - updated modelValue prop | modelValue prop two-way binding |
| input | value string | number - input valueevent Event - native event | on input change event |
| focus | event Event - native event | on input focus event |
| blur | event Event - native event | on input blur event |
| invalid | event Event - native event | on input invalid event |
| icon-click | event Event - native event | on icon click event |
| icon-right-click | event Event - native event | on icon right click event |
Sass variables
Current theme ➜ Oruga
| SASS Variable | Default |
|---|---|
| $input-background-color | #ffffff |
| $input-border-color | var(--#{$prefix}grey-lighter) |
| $input-border-style | solid |
| $input-border-width | 1px |
| $input-border-radius | var(--#{$prefix}base-border-radius) |
| $input-rounded-border-radius | var( --#{$prefix}base-border-radius-rounded) |
| $input-box-shadow | $control-box-shadow |
| $input-color | #363636 |
| $input-icon-zindex | 4 |
| $input-height | $control-height |
| $input-line-height | var(--#{$prefix}base-line-height) |
| $input-margin | 0 |
| $input-padding | $control-padding-vertical $control-padding-horizontal |
| $input-counter-font-size | 0.75rem |
| $input-counter-margin | 0.25rem 0 0 0.5rem |
| $input-textarea-max-height | 600px |
| $input-textarea-min-height | 120px |
| $input-textarea-padding | 0.625em |
See ➜ 📄 Full scss file
Current theme ➜ Bulma
The theme does not have any custom variables for this component.
Current theme ➜ Bootstrap
| SASS Variable | Default |
|---|---|
| $input-icon-color | $input-color |
| $input-icon-spacer | 0.75rem |
| $input-icon-padding-sm | 2rem |
| $input-icon-padding | 2.5rem |
| $input-icon-padding-lg | 3rem |
See ➜ 📄 Full scss file
