Checkbox

Choose one or more boolean options.

Checkbox

Default

Add a checkbox type input easily and with a beautiful animation

Code copied

color

Change the color of the component with the color property, the allowed values ​​are (main colors of Sax Design, RGB, HEX)

Code copied

Boolean Value

By default the component is used with a boolean value that when being checked returns true and when not being checked returns false

Code copied

String Value

You may need to return a string when the component is checked for it use the value property with the string you want to return

Code copied

Checkbox group

It is used for multiple checkboxes which are bound in one group, and indicates whether one option is selected by checking if it is checked.

checkbox-group element can manage multiple checkboxes in one group by using v-model which is bound as an Array. Inside the el-checkbox element, label is the value of the checkbox. If no content is nested in that tag, label will be rendered as the description following the button of the checkbox. label also corresponds with the element values in the array. It is selected if the specified value exists in the array, and vice versa.

Code copied

Data-driven groups

Pass options to let CheckboxGroup render flat or sectioned choices. A section heading selects all enabled children and automatically becomes indeterminate when only part of the section is selected. columns controls the grid and collapses to one column on small screens.

Code copied

Checkbox group tabs

CheckboxGroupTabs combines a platform switcher with grouped choices. The checkbox before a tab selects or clears the whole platform, while clicking its label only switches the visible content. Active tabs use color, surface and shadow instead of borders.

Code copied
Code copied

Icon

Change the icon inside the checkbox with the icon slot. Custom icons use a white foreground while checked. Stroke SVG paths are drawn automatically; filled icons use a scale and clip reveal. Set icon-animation to draw, pop, or none to override the automatic choice. The slot exposes checked and indeterminate for fully custom motion.

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

Label

Add a label to the checkbox with the default slot of the component

Code copied

Loading New

Add a loading status to the component with the property loading

Code copied

Line Through New

Add a line in the middle of the label when the checkbox is checked with the property line-through

Code copied

Indeterminate New

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

Code copied

API

CheckboxGroup

PropertyTypeDefaultDescription
v-modelCheckboxValue[][]Flat array containing every selected child value.
options(CheckboxGroupOption | CheckboxGroupSection)[][]Data-driven options; an item with options becomes a selectable section.
columnsnumber1Default column count. A section can override it with its own columns.
gapnumber | string12Row and column gap. Numbers are treated as pixels.
disabled-valuesCheckboxValue[][]Disable child values and preserve them during section select/clear actions.
disabled-group-valuesCheckboxValue[][]Disable select-all for the specified sections.
disabledbooleanfalseDisable the whole group.
min / maxnumber-Minimum and maximum selected value counts.

CheckboxGroupOption supports label, value, disabled, and description. CheckboxGroupSection supports label, value, options, disabled, and columns. Child value entries must remain unique within a CheckboxGroup or tab.

Events: update:modelValue(value) and change(value). Slots: option, group-label, and empty. The default slot remains compatible with manually composed Checkbox children when options is omitted.

CheckboxGroupTabs

PropertyTypeDefaultDescription
v-modelRecord<string, CheckboxValue[]>{}Selected values stored independently by tab value.
tabsCheckboxGroupTab[][]Tabs containing label, value, and grouped options.
active-key / v-model:active-keystring | numberFirst enabled tabActive tab.
columnsnumber2Default content column count.
gapnumber | string12Content row and column gap.
disabledbooleanfalseDisable every tab and option.

Events: update:modelValue(value), change(value, activeKey), update:activeKey(activeKey), and tabChange(activeKey). Slots: tab, option, group-label, and empty.

PROPS

PropertyTypeValuesDescriptiondefaultExampleMore
disabled / max / not-valueBoolean / Number / String | Number | Booleantrue | false / selected value limit / unchecked valueDisable selection, cap grouped selections, or customize the unchecked value.false / - / false
v-modelBoolean, String, Arraybooleanstringarraydetermine the value of the checkbox and data anchor.
colorStringSax Design colorsRGBHEXChange the color of the component.
valueString, ObjectStringObjectDetermine the value of the input when being checked.true
loadingBooleantruefalseAdd a loading animation and disable the input.
Usage
line-throughBooleantruefalseAdd a line in the center of the label when checked.
Usage
icon-animationStringautodrawpopnoneAnimate a custom icon. Auto draws stroke SVG paths and uses a pop reveal for filled icons.auto
indeterminateBooleantruefalseChange the default checkbox icon to a line that represents undetermined data.
Usage
label-beforeBooleantruefalseChange the position of the label.
Usage
checkedBooleantruefalseDetermine if the component is initially in check (this changes the property computed in v-model to true).
checked-forceBooleantruefalseForce checkbox state is checked
Checkbox GroupArray<String | Number | Object>It is used for multiple checkboxes which are bound in one group.
idstringCheckbox idundefined
namestringCheckbox name
No matching data

SLOTS

PropertyTypeValuesDescriptiondefaultExampleMore
iconslotcheckedindeterminateChange the component icon and receive its current checked and indeterminate states.
Usage
defaultslotAdd a label to the component.
Usage
No matching data
Last Updated: 2026-08-17, 08:33:54