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.
نمایش کد
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.

نمایش کد
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.

نمایش کد
vue

Contrast:muted

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

نمایش کد
vue

Contrast:muted+

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

نمایش کد
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.

نمایش کد
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.

نمایش کد
vue

Focus

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

نمایش کد
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.

لطفاً یک نام کاربری معتبر وارد کنید
لطفاً یک نام کاربری معتبر وارد کنید
لطفاً یک نام کاربری معتبر وارد کنید
نمایش کد
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.

لطفاً یک نام کاربری معتبر وارد کنید
لطفاً یک نام کاربری معتبر وارد کنید
لطفاً یک نام کاربری معتبر وارد کنید
نمایش کد
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.

نمایش کد
vue

Label:float

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

نمایش کد
vue

Loading

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

نمایش کد
vue

Disabled

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

نمایش کد
vue

Group

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

نمایش کد
vue
v-model
modifiers

v-model.number

v-model.trim

v-model.lazy

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

@since

2.0.0

نمایش مثال
vue
contrast
The contrast of the input.
نمایش مثال
vue
size
The size of the input.
نمایش مثال
vue
#label
This slot has no inherted props
نمایش مثال
vue
#icon
This slot has no inherted props
نمایش مثال
vue
#action
This slot has no inherted props
نمایش مثال
vue
rounded
The radius of the input.
نمایش مثال
vue
contrast
The contrast of the input.
نمایش مثال
vue
size
The size of the input.
نمایش مثال
vue
el
The underlying HTMLInputElement element.
نمایش مثال
vue