Used for making a choice between yes and no.

Usage no npm install needed!

<script type="module">
  import cmdsCheckboxField from 'https://cdn.skypack.dev/@cmds/checkbox-field';


CheckboxField"> CheckboxField

npm package

Used for making a choice between yes and no.

Prop Types

Property Type Required? Description
id String Unique id for the instance of this field
contextId Context The appearance will change depending on context in which the field is displayed. Valid options include: recordDetail or recordGridRow or recordGalleryCard or recordListItem
roleId Role The behaviour changes based on the role. Valid options include editor or readOnly
checked Boolean Whether the checkbox is checked or not
onChange Function Callback invoked whenever the checkbox get's toggled. : ({id: string, checked: boolean}): void

More information

This component is designed and developed as part of Cosmos Design System.