Skip to content
On this page

NcCheckboxRadioSwitch

Props

Prop nameDescriptionTypeValuesDefault
idUnique id attribute of the inputstring-() => 'checkbox-radio-switch-' + GenRandomId()
nameInput name. Required for radio, optional for checkboxstring-null
typeType of the input. checkbox, radio or switchstring-'checkbox'
buttonVariantToggle the alternative button styleboolean-false
buttonVariantGroupedAre the elements are all direct siblings?
If so they will be grouped horizontally or vertically
Possible values are no, horizontal, vertical.
stringno, vertical, horizontal'no'
checkedChecked state. To be used with v-model:valueboolean|array|string-false
valueValue to be synced on checkstring-null
disabledDisabled stateboolean-false
indeterminateIndeterminate stateboolean-false
loadingLoading stateboolean-false
wrapperElementWrapping element tagstring-'span'

Events

Event namePropertiesDescription
update:checked

Slots

NameDescriptionBindings
defaultThe checkbox/radio label

General description

This is a simple input checkbox, radio and switch design. Please have a look at proper usage and recommendations: https://material.io/components/checkboxes

Standard checkbox

loading...

Standard radio set

loading...

Standard radio set with alternative button style

loading...

Standard checkbox set

loading...

Standard switch

loading...