0.6.0 • Published 5 years ago

@pndr/checkbox-field v0.6.0

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

CheckboxField CheckboxField

npm package

Used for making a choice between yes and no.

Prop Types

PropertyTypeRequired?Description
idStringUnique id for the instance of this field
contextIdContextThe appearance will change depending on context in which the field is displayed. Valid options include: recordDetail or recordGridRow or recordGalleryCard or recordListItem
roleIdRoleThe behaviour changes based on the role. Valid options include editor or readOnly
checkedBooleanWhether the checkbox is checked or not
onChangeFunctionCallback 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.