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

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

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

Contrast:muted

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

Show code

Contrast:muted+

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

Show code

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

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

Focus

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

Show code

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

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

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

Label:float

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

Show code

Loading

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

Show code

Disabled

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

Show code

Group

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

Show code
v-model
Show example
rounded
The radius of the input.

@since

2.0.0

@default

'rounded'

Show example
size
The size of the input.

@default

'md'

Show example
type
The type of input.
Show example
label
The label to display for the input.
Show example
id
The form input identifier.
Show example
contrast
The contrast of the input.

@default

'default'

Show example
classes
Optional CSS classes to apply to the wrapper, label, input, addon, error, and icon elements.
Show example
icon
The icon to display for the input.
Show example
placeholder
The placeholder to display for the input.
Show example
error
An error message or boolean value indicating whether the input is in an error state.
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
el
The underlying HTMLInputElement element.
The underlying HTMLInputElement element.
Show example