Checkbox

Choose one or more boolean options.

Checkbox

Default

Add a checkbox type input easily and with a beautiful animation

Size

Compare the inherited small, default, and large component sizes.

Disabled

Set disabled to prevent interaction. Disabled checkboxes use a neutral fill and inset shadow, preserve checked or indeterminate marks, and remain still on hover. Compare them with enabled controls below.

Color

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

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

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

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.

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.

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.

Object values

CheckboxGroup can bind objects as option values. The current selected objects are shown below the controls.

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.

Label

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

Loading

Add a loading status to the component with the property loading

Line through

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

Indeterminate

Set indeterminate to show partial selection as a solid square. This reusable state takes visual precedence over checked without changing v-model. Update it from the selected children; CheckboxGroup section headings and CheckboxGroupTabs tab checkboxes calculate it automatically. Clear indeterminate when all or none of the children are selected.

API

PROPS

Property
Type
Values
Description
default
Example
More
size
small | medium | large
Set or inherit the checkbox and label size.
—
—
disabled
Boolean
true | false
Disable checkbox interaction while preserving its checked or indeterminate state.
false
max
Number
selected value limit
Disable selection, cap grouped selections, or customize the unchecked value.
—
—
not-value
String | Number | Boolean
unchecked value
Disable selection, cap grouped selections, or customize the unchecked value.
false
—
v-model
Boolean, String, Array
booleanstringarray
determine the value of the checkbox and data anchor.
false
color
String
primary | success | danger | warn | warning | dark | text | light | secondary | RGB | RGBA | HEX | HSL | HSLA
Change the color of the component.
false
value
String, Object
StringObject
Determine the value of the input when being checked.
true
loading
Boolean
truefalse
Add a loading animation and disable the input.
false
line-through
Boolean
truefalse
Add a line in the center of the label when checked.
false
icon-animation
String
autodrawpopnone
Animate a custom icon. Auto draws stroke SVG paths and uses a pop reveal for filled icons.
auto
indeterminate
Boolean
truefalse
Display a solid square for partial selection, independently of modelValue. Takes visual precedence over checked and exposes aria-checked="mixed".
false
label-before
Boolean
truefalse
Change the position of the label.
false
checked
Boolean
truefalse
Determine if the component is initially in check (this changes the property computed in v-model to true).
false
checked-force
Boolean
truefalse
Force checkbox state is checked
false
checkbox-group
Array<String | Number | Object>
null
Bind multiple checkboxes as one group.
—
id
string
null
Checkbox id
undefined
name
string
null
Checkbox name
—

CheckboxGroup props

Property
Type
Description
default
Example
More
size
Set or inherit the size of CheckboxGroup and its options.
—
v-model
Flat array containing every selected child value.
[]
options
( | )[]
Data-driven options; an item with `options` becomes a selectable section. Keep child values unique within a group or tab.
[]
columns
number
Default column count. A section can override it with its own `columns`.
1
gap
number | string
Row and column gap. Numbers are treated as pixels.
12
disabled-values
Disable child values and preserve them during section select/clear actions.
[]
disabled-group-values
Disable select-all for the specified sections.
[]
disabled
boolean
Disable the whole group.
false
min
number
Minimum selected value count.
—
max
number
Maximum selected value count.
—

CheckboxGroupTabs props

Property
Type
Description
default
Example
More
v-model
Selected values stored independently by tab value.
{}
tabs
[]
Tabs containing `label`, `value`, and grouped `options`.
[]
v-model:active-key
string | number
Active tab.
First enabled tab
columns
number
Default content column count.
2
gap
number | string
Content row and column gap.
12
disabled
boolean
Disable every tab and option.
false

EVENTS

Event
Type
Description
default
Example
More
update:modelValue
| 
Fire when a Checkbox or CheckboxGroup value changes.
—
—
change
| 
Fire when a Checkbox or CheckboxGroup value changes.
—
—
update:activeKey
String | Number
Fire when CheckboxGroupTabs activates another tab.
—
—
tabChange
String | Number
Fire when CheckboxGroupTabs activates another tab.
—
—
CheckboxGroupTabs change
(value: , activeKey: String | Number)
Fires with the complete grouped value and active tab after a tabbed selection changes.
—
—

SLOTS

Slot
Scope
Description
default
Example
More
CheckboxGroup.default
—
Compose Checkbox children manually when options is omitted.
—
CheckboxGroup.option
{ option: ; checked: boolean }
Customize a data-driven option.
—
CheckboxGroup.group-label
{ group: ; checked: boolean; indeterminate: boolean }
Customize a section select-all label.
—
CheckboxGroup.empty
—
Render content when no options or manual children are available.
—
CheckboxGroupTabs.tab
{ tab: ; active: boolean; checked: boolean; indeterminate: boolean; selectedCount: number }
Customize a tab trigger while keeping its selection state.
—
CheckboxGroupTabs.option
{ option: ; checked: boolean }
Customize an option in the active tab.
—
CheckboxGroupTabs.group-label
{ group: ; checked: boolean; indeterminate: boolean }
Customize a section label in the active tab.
—
CheckboxGroupTabs.empty
—
Render content when no active tab is available.
—
icon
{ checked: boolean; indeterminate: boolean }
Change the component icon and receive its current checked and indeterminate states.
—
default
null
Add a label to the component.
—
Last Updated: 2026-10-28, 06:17:56 UTC
Copied