Docplanner Logo

Docplanner Mobile UI

Edit page
Introduction
⚙️ – Core
⚛️ – Atoms-Molecules
AvatarBadgeButtonPropertiesBasic usageSizingVariations and emphasesLoading stateDisabled stateIconsCheckBoxFieldCircleDividerDownloadCardIconInputFieldInputFieldButtonLinkListItemOneTimeCodeInputPhotoAvatarRadioGroupFieldRatingSelectFieldSimpleAvatarSpacerSwitchFieldTextToast❌ Icon (Deprecated)❌ Roboto (Deprecated)❌ WorkSans (Deprecated)
🧬 – Organisms

Button

Buttons make common actions immediately visible and easy to perform with one click or tap. They can be used for any type of action, including navigation.

The "primary" button should be used to identify the main call to action in a screen. Ideally, you want to have only one instance of it per screen. You can as many of the other button types per screen as you want.

Properties

variant
"primary" | "danger" | "secondary" | undefined
primary

🎨  The variant of the button to render.

emphasis
"low" | "medium" | undefined
medium

🎨  The emphasis of the variant

isCompact
boolean | undefined

@deprecated , please use @size instead Whether to render the button smaller or not.

size
ButtonSize | undefined
ButtonSize.Md

Available size options

isLoading
boolean | undefined

Loading flag

iconRight
"action-add-phone" | "action-add-visit" | "action-alarm-clock" | "action-alarm" | "action-back" | "action-bin" | "action-bookmark" | "action-calendar-block" | "action-calendar-filled" | ... 255 more ... | undefined

Icon name or a custom react element

iconLeft
"action-add-phone" | "action-add-visit" | "action-alarm-clock" | "action-alarm" | "action-back" | "action-bin" | "action-bookmark" | "action-calendar-block" | "action-calendar-filled" | ... 255 more ... | undefined

Icon name or a custom react element

children
string | undefined

Children

Basic usage

Button

Sizing

Large
Medium (default)
Small

Variations and emphases

Primary medium
Primary low
Secondary medium
Secondary low
Danger medium
Danger low

Loading state

Loading
Loading
Loading
Loading
Loading
Loading

Disabled state

Disabled
Disabled
Disabled
Disabled
Disabled
Disabled

Icons

Standard icon

Back
Back
Continue
Continue

Custom icon

Custom