Skip to main content

Checkbox

About 175 wordsLess than 1 minute

Checkbox

Props

PropTypeDefaultDescription
idstringAuto-generatedThe unique identifier for the checkbox input.
iconstring-Optional icon to display with the label.
labelstring-Text label for the checkbox.
infostring-Additional helper text shown below the field.
errorstring-Error message shown below the field.
modelValueany-The current value. Can be a boolean, single value, or array (for groups).
valueany-The value to emit when checked (used in single or group mode).
uncheckedValueany-The value to emit when unchecked (used in single mode only).
disabledbooleanfalseWhether the checkbox is disabled.

Emits

EventPayload TypeDescription
update:modelValueanyEmitted with the new value when the checkbox is toggled.

Install

import { FgCheckbox } from 'fadgram-vue'

Basic usage

Preview

agree: false