# Default
Documentation Vuesax 4.0+
These documents refer to the latest version of vuesax (4.0+), to see the documents of the previous versions you can do it here 👉 Vuesax 3.x
Add an elements input facilitate with the component <vs-input>
Documentation Vuesax 4.0+
These documents refer to the latest version of vuesax (4.0+), to see the documents of the previous versions you can do it here 👉 Vuesax 3.x
Add an elements input facilitate with the component <vs-input>
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-placeholder
Change the color of the component and add a border below with the color
property, the allowed values ​​are the main colors of vuesax 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
Iconos por defecto
Vuesax no usa ninguna librerÃa o fuente de iconos por defecto, con esto damos la libertad de usar la que prefieras
Todos los componentes que usen en algún lugar un icono por defecto como el de close en un Alert o un Popup va a ser un svg para no tener que instalar ningún tipo de fuente externa, y se podrá sustituir con un slot="icon"
por el icono de su preferencia
Vuesax Docs Icons
Estos documentos y los ejemplos usan la libreria de componentes boxicons, no es obligatoria o necesaria para el uso de Vuesax pero la recomendamos por su amplia gama de iconos y como complementan visualmente el framework
You can add a message below the input with the slot="message- {vuesax 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.
Change the type of input with the type
property as a native html input, the default value is text
Change everything is style of the component with the border
property, the property is a Boolean
, so you can add it without any value.
Change everything is style of the component with the shadow
property, the property is a Boolean
, so you can add it without any value.
Property | Type | Values | Description | default | Example | More |
---|---|---|---|---|---|---|
placeholder | String | String | Add a placeholder to the input. | Usage Open Close | ||
| ||||||
label | String | String | Add a label above the component. | Usage Open Close | ||
| ||||||
label-placeholder | String | String | Add a placeholder converts to focus on a label. | Usage Open Close | ||
| ||||||
color | string | vuesax colorsRGBHEX | Change component color. | Usage Open Close | ||
| ||||||
state | String | vuesax colorsRGBHEX | Change the background color of the component by changing its status. | Usage Open Close | ||
| ||||||
progress | number | 0 - 100 | Add a progress bar starting in red and ending in green. | Usage Open Close | ||
| ||||||
loading | boolean | boolean | Add a loading animation to the input. | Usage Open Close | ||
| ||||||
type | string | html type | Change the type of input (html values). | Usage Open Close | ||
| ||||||
border | boolean | boolean | Change the style of the component. | false | Usage Open Close | |
| ||||||
shadow | boolean | boolean | Change the style of the component. | false | Usage Open Close | |
| ||||||
icon-after | boolean | boolean | Put the icon after the input. | false | Usage Open Close | |
| ||||||
visible-password | boolean | boolean | If the input is of the password type, it is modified to show the password. | false | Usage Open Close | |
|
Property | Type | Values | Description | default | Example | More |
---|---|---|---|---|---|---|
icon | Slot | Add an icon to the input. | Usage Open Close | |||
| ||||||
message | Slot | Add an informative text below the input. | Usage Open Close | |||
|