# 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 a checkbox type input easily and with a beautiful animation
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 a checkbox type input easily and with a beautiful animation
Change the color of the component with the color
property, the allowed values ​​are (main colors of vuesax, RGB, HEX)
By default the component is used with a boolean value that when being checked returns true
and when not being checked returns false
You may need to return a string when the component is checked for it use the val
property with the string
you want to return
You may need to return a string when the component is checked for it use the val
property with the string
you want to return
the val
property of a checkbox component can be an object
[ { "github": "https://github.com/webpack/webpack", "name": "Webpack" } ]
Change the icon inside the checkbox component with theslot="icon"
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
Add a line in the middle of the label when the checkbox is checked with the property line-through
There are some cases where you have several checkboxes and you need one that manages all the others for this you can do it with the indeterminate property that adds a different style to the checkbox
Property | Type | Values | Description | default | Example | More |
---|---|---|---|---|---|---|
v-model | boolean, string, array | boolean string array | determine the value of the checkbox and data anchor. | false | Usage Open Close | |
| ||||||
color | string | vuesax colors RGB HEX | Change the color of the component. | false | Usage Open Close | |
| ||||||
val | string, object | string object | Determine the value of the input when being checked. | true | Usage Open Close | |
| ||||||
loading | boolean | true false | Add a loading animation and disable the input. | false | Usage Open Close | |
| ||||||
line-through | boolean | true false | Add a line in the center of the label when checked. | false | Usage Open Close | |
| ||||||
indeterminate | boolean | true false | Change the default checkbox icon to a line that represents undetermined data. | false | Usage Open Close | |
| ||||||
label-before | boolean | true false | Change the position of the label. | false | Usage Open Close | |
| ||||||
checked | boolean | true false | Determine if the component is initially in check (this changes the property computed in v-model to true). | false | Open Close | |
|
Property | Type | Values | Description | default | Example | More |
---|---|---|---|---|---|---|
icon | slot | Change the component icon. | Usage Open Close | |||
| ||||||
default | slot | Add a label to the component. | Usage Open Close | |||
|