Skip to content

Checkbox

Checkbox

PCheckbox supports single boolean values or arrays of checked values when used in lists.

Demo

Usage

<PCheckbox v-model="accepted">I agree</PCheckbox>
<PCheckbox v-model="selectedIds" :key-value="row.id">
Select row
</PCheckbox>

Props

PropTypeDefaultNotes
valueBoolean | Arrayfalsev-model value or list of checked values.
keyValueString | NumbernullValue to push into an array model.
disabledBooleanfalseDisables the input.
indeterminateBooleanfalseSets the indeterminate UI state.

Events

EventPayloadDescription
inputBoolean | ArrayEmits on change.

Slots

SlotDescription
defaultOptional label text.