Skip to main content

Button


Buttons allow users to perform actions such as submitting a form or confirming a choice. This element supports labels, icons, events, and conditional read-only states.

Properties

PropertyValueDescription
TypeButtonUI component type
GroupButtonBelongs to the "Button" group in UI catalog
Identifier2Unique element ID
PreviewSee image preview above
Read-onlyYAppears but does not allow interaction
Text, IconYSupports both text and icons
EventYTriggers an event when clicked
MandatoryOptional unless configured otherwise
ChildrenNo nested children elements
ShadeNo background shade option

Usage Example

<Button label="Login" onClick={handleLogin} icon="lock" />

SDK Integration

This element appears in the doctor Log in flow and links to the SDK method:

Method: /account/doctor/details

Authenticates a doctor using email, password, and (optionally) MFA.


Example UI Placement

LevelIDTypeDescription
1loginButtonSubmits login credentials
1reset-passwordLinkLink for password recovery

Notes

  • This button may trigger loading indicators or validation.
  • Use event listeners to handle onClick or onSubmit behavior.
  • Default visual style includes rounded corners and primary blue fill.