Docplanner Logo

Docplanner Mobile UI

Edit page
Introduction
⚙️ – Core
⚛️ – Atoms-Molecules
AvatarBadgeButtonCheckBoxFieldPropertiesBasic usageMulti Checkbox Selector with Partially selected main CheckboxVariantsLeading iconLabel lengthStatesComplex labelDpCheckbox onlyCircleDividerDownloadCardIconInputFieldInputFieldButtonLinkListItemOneTimeCodeInputPhotoAvatarRadioGroupFieldRatingSelectFieldSimpleAvatarSpacerSwitchFieldTextToast❌ Icon (Deprecated)❌ Roboto (Deprecated)❌ WorkSans (Deprecated)
🧬 – Organisms

CheckboxField

Use <DpCheckboxField /> whenever you need a user to accept/decline something or turn on/off an option.

Properties

color
"gray" | "blue" | "turquoise" | "red" | "green" | "primary" | undefined
gray

🎨   Color variant

isChecked
boolean | undefined

DpCheckbox field value

isPartiallyChecked
boolean | undefined

Determines whether the DpCheckbox is half checked ( - ) for Lists

onChange
((value: boolean) => void) | undefined

Change handler, defaults to toggle @isChecked

label
ReactNode

DpCheckbox field label, can be a string or a react node

hasLeadingIcon
boolean | undefined

Determines whether the DpCheckbox appears at the begining or at the end

wrapStyle
StyleProp<ViewStyle>

Adds a wrapper style for the component Row

error
string | undefined

Error message

Basic usage

Multi Checkbox Selector with Partially selected main Checkbox

This can be used in large lists as multiselector for the intermediate state

Variants

Leading icon

Label length

States

Complex label

DpCheckbox only

For convenience reason, we also export a simple stateless <DpCheckbox /> component in case you need to build something custom.

color
"gray" | "blue" | "turquoise" | "red" | "green" | "primary" | undefined
primary

🎨   Color variant when the checkbox is checked

isChecked
boolean | undefined

Determines whether the DpCheckbox is checked

isPartiallyChecked
boolean | undefined

Determines whether the DpCheckbox is half checked ( - ) for Lists

disabled
boolean | undefined

Disabled

hasError
boolean | undefined

Determines whether the border is red