Input

Capture a single line of text with validation and state feedback.

Input

Default

Add an elements input facilitate with the component input

Code copied

Clearable

Set allow-clear to show a clear button at the end while the input is hovered or focused. Pressing Escape also clears the current value.

Code copied

Label

Add a label to the input with the property label

Code copied

Label Float

You can have a placeholder with a great animation when being or in focus or with a value becoming a label above the input with the property label-float

Code copied

Color

Change the color of the component and add a border below with the color property, the allowed values ​​are the main colors of Sax Design and the colors (RGB y HEX)

Code copied

Icon

Add an icon to the input easily with the slot icon if you want the icon to be before the input you can do it with the property icon-before

Default icons

Sax Design Vue renders build-time Iconify SVG data. Built-in controls, such as close buttons in Alert or Popup, use SVG icons and require no external icon font. Use the #icon slot when a product needs another icon.

Find and use icons

Search Boxicons for a collection and copy its prefix:name value into SIcon.

Code copied

Message

You can add a message below the input with the #message-{Sax Design color} to report that a field is missing or the value is wrong

Code copied

State

Change the color of the input for some state, the allowed states are (primary, success, danger, warn, dark)

Code copied

Progress

Add a validation progress bar, the most common is its use to validate passwords and correct data within the input, its value is (0 - 100).

The example validates that the password has at least

  • A special character
  • More than 6 digits
  • One lower case letter
  • An uppercase letter
  • A number
Code copied

Loading

Add a loading animation to the input with the loading property, the property is a Boolean, so you can add it without any value.

Code copied

Input types

Use type for text-oriented inputs: text, password, search, number, email, tel, or url. Date and time values use SDatePicker and STimePicker so formatting, themes, and popup behavior remain consistent.

Code copied

Border - Shadow

Change everything is style of the component with the input-style property, the property is a String with values border . shadow . transparent

Code copied

Affixes

Add prefix and suffix icons with prefix-icon and suffix-icon. Use the matching slots when the affix needs fully custom content.

Code copied

Sizes

Use size to render a small, default, or large input.

Code copied

Set type="search" with controls to show the search action. Pressing Enter or clicking the action emits search-click.

Code copied

Deferred commit

Set immediate="false" to synchronize v-model on change or blur. Type a value and click outside the field to see the committed value update.

Code copied

Character count

Use max-length with show-word-count to limit and display the count. count-method customizes both behaviors; the second field counts UTF-8 bytes.

Code copied

Native constraints

Common native constraints such as min, max, step, input-mode, pattern, and required are forwarded to the inner input. Number inputs also clamp typed and pasted values to the configured minmax range.

Code copied

API

PROPS

PropertyTypeValuesDescriptiondefaultExampleMore
block / shape / text-whiteBoolean / String / Booleantrue | false / square / true | falseControl input width, visual shape and text contrast.false / - / false
allow-clear / clearable / disabledBoolean / Boolean / Booleantrue | falseEnable the trailing clear action (`clearable` is retained as an alias) or disable interaction.false / false / false
wrap-classes / wrap-stylesString | Object | ArrayCSS class or style valuesCustomize the outer input wrapper.-
v-modelString, NumberStringNumberbinding value
placeholderStringStringplaceholder of Input
labelStringStringa label above the component.
Usage
label-floatStringStringAdd a placeholder converts to focus on a label.
Usage
colorStringSax Design colorsRGBHEXChange component color.
Usage
stateStringSax Design colorsRGBHEXChange the background color of the component by changing its status.
progressNumber0 - 100progress bar starting in red and ending in green.
loadingBooleanBooleanAdd a loading animation to the input.
Usage
typeInputTypetext | password | search | number | email | tel | urlSet a text-oriented input type. Use DatePicker or TimePicker for date and time values.text
borderBooleanBooleanChange the style of the component.
shadowBooleanBooleanChange the style of the component.
icon-afterBooleanBooleansuffix icon component
show-passwordbooleanbooleanIf the input is of the password type, it is modified to show the password.
max-length / show-word-count / trimNumber, BooleanNumbertrue | falseLimit input, show the counter in the suffix area, and trim committed values.null, false, false
count-method({ value: string }) => numberA monotonic non-negative counterCustomize both the displayed count and max-length enforcement for bytes or another encoding.value.length
sizeStringsmall | default | largeSet the input size.default
immediateBooleantrue | falseUpdate while typing or commit the value on change and blur.true
controlsBooleantrue | falseShow the built-in search or password action.
prefix-icon / suffix-icon / prefix-config / suffix-configString / ObjectIcon name / '{ iconcontentstatus }'Render lightweight prefix and suffix icons or content; slots have the highest priority.-
min-length / min / max / step / input-mode / pattern / required / multipleNumber | String / BooleanNative input constraintsForward common native constraints and clamp number values to the configured min–max range.-
readonly / editable / auto-focus / alignBoolean, Stringtrue | falseleft | center | rightControl editing state, focus and text alignment.false, true, false, left
No matching data

SLOTS

PropertyTypeValuesDescriptiondefaultExampleMore
iconSlotAdd an icon to the input.
messageSlotmessage-successmessage-dangermessage-warnAdd an informative text below the input.
prefix / suffixSlotsuffix: { countlimit }Customize either affix. The suffix slot replaces the default counter and receives its current count and limit.
No matching data
Last Updated: 2026-08-17, 08:33:54