Default
Add an elements input facilitate with the component input
Add an elements input facilitate with the component input
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.
Add a label to the input with the property label
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
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)
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.
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
Change the color of the input for some state, the allowed states are (primary, success, danger, warn, dark)
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
Add a loading animation to the input with the loading property, the property is a Boolean, so you can add it without any value.
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.
Change everything is style of the component with the input-style property, the property is a String with values border . shadow . transparent
Add prefix and suffix icons with prefix-icon and suffix-icon. Use the matching slots when the affix needs fully custom content.
Use size to render a small, default, or large input.
Set type="search" with controls to show the search action. Pressing Enter or clicking the action emits search-click.
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.
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.
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 min–max range.