Skip to content

Checkbox

<bunt-checkbox
type
=""
label
=""
:disabled
=""
:readonly
=""
v-model
="
yourValue
"
>
</bunt-checkbox>
--checkbox-size
:
--checkbox-weight
:
--checkbox-icon
:
--checkbox-color
:

API

Slots

SlotDescription
defaultcheckbox label

Props

PropertyTypeDefaultDescription
modelValuestringpowers v-model
typestringtextnative input element type attribute
labelstringcheckbox label, prefer to use default slot
disabledbooleanfalse
readonlybooleanfalse

Events

EventDescription
update:modelValue

Style

PropertyTypeDefaultDescription
--checkbox-sizenormal, smallnormal
--checkbox-weightfilled, outlined, textfilled
--checkbox-iconcheck, check-bold, close, plus, minuscheck
--checkbox-colorcolorvar(--clr-primary)

Examples

Size

<bunt-checkbox
>
small
</bunt-checkbox>
--checkbox-size
:
small
<bunt-checkbox
>
normal
</bunt-checkbox>
--checkbox-size
:
normal

Released under the MIT License.