Documentation

Radius

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
vue

Size

Inputs can have different sizes. The default size is md. You can change the size of an input by setting the size property.

Show code
vue

Contrast:default+

Inputs can have different contrasts. The default contrast is default. You can change the contrast of an input by setting the contrast property.

Show code
vue

Contrast:muted

Inputs can have different contrasts. You can change the contrast of an input by setting the contrast property.

Show code
vue

Contrast:muted+

Inputs can have different contrasts. You can change the contrast of an input by setting the contrast property.

Show code
vue

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
vue

Addon

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
vue

Focus

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

Show code
vue

Error

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

Please enter a valid username
Please enter a valid username
Please enter a valid username
Show code
vue

Error:icon

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

Please enter a valid username
Please enter a valid username
Please enter a valid username
Show code
vue

Slot:action

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

Show code
vue

Label:float

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

Show code
vue

Loading

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

Show code
vue

Disabled

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

Show code
vue

Group

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

Show code
vue
v-model
modifiers

v-model.number

v-model.trim

v-model.lazy

Show example
vue
classes
Optional CSS classes to apply to the wrapper, label, input, addon, error, and icon elements.
Show example
vue
color-focus
Whether the color of the input should change when it is focused.
Show example
vue
error
An error message or boolean value indicating whether the input is in an error state.
Show example
vue
icon
The icon to display for the input.
Show example
vue
id
The form input identifier.
Show example
vue
label
The label to display for the input.
Show example
vue
label-float
If the label should be floating.
Show example
vue
loading
Whether the input is in a loading state.
Show example
vue
placeholder
The placeholder to display for the input.
Show example
vue
type
The type of input.
Show example
vue
rounded
The radius of the input.

@since

2.0.0

Show example
vue
contrast
The contrast of the input.
Show example
vue
size
The size of the input.
Show example
vue
#label
This slot has no inherted props
Show example
vue
#icon
This slot has no inherted props
Show example
vue
#action
This slot has no inherted props
Show example
vue
rounded
The radius of the input.
Show example
vue
contrast
The contrast of the input.
Show example
vue
size
The size of the input.
Show example
vue
el
The underlying HTMLInputElement element.
Show example
vue