BaseInput

Input shape

Inputs can be customized to show different shapes. The default shape is rounded. You can change the shape of all inputs by setting the shape property.

Default shape of all <BaseInput> can be set in your .app/app.config.ts.
Show code

Input icon

Inputs can have a configurable icon on the left side using the icon prop. Make sure to pick meaningful icons for your use case.

Show code

Floating labels

Inputs can have a material design style floating label using the labelFloat prop.

Show code

Small inputs

Inputs can be displayed in a smaller and more compact way using the size prop with the sm value.

Show code

Colored focus

Inputs can have a primary colored focus using the colorFocus prop.

Show code

Loading state

Inputs can be shown in a loading state using the loading prop.

Show code

Disabled state

Inputs can be shown in a disabled using the disabled prop.

Show code

Error state

Inputs can be shown in an error state using the error prop. You can also set a custom error message using the same prop.

This email is already taken
Show code

Grouped inputs

Inputs and selects can be grouped with buttons using the BaseButtonGroup component.

Show code
v-model
The model value of the input.

@modifiers

`v-model="value"`

@modifiers

`v-model.number="value"`

@modifiers

`v-model.trim="value"`

Show example
type
The type of input.
Show example
size
The size of the input.
Show example
icon
The icon to display for the input.
Show example
label
The label to display for the input.
Show example
id
The form input identifier.
Show example
shape
The shape of the input.
Show example
error
An error message or boolean value indicating whether the input is in an error state.
Show example
classes
Optional CSS classes to apply to the wrapper, label, input, addon, error, and icon elements.
Show example
contrast
The contrast of the input.
Show example
placeholder
The placeholder to display for the input.
Show example
loading
Whether the input is in a loading state.
Show example
label-float
If the label should be floating.
Show example
color-focus
Whether the color of the input should change when it is focused.
Show example
#label
Show example
#icon
Show example
#action
Show example
modelModifiers
Used internaly to allow v-model.number and v-model.trim
Show example
el
The underlying HTMLInputElement element.
Show example