Skip to main content

Ghost


Ghost buttons perform secondary or destructive actions. They appear with no background and minimal styling, typically used for actions like removing or dismissing content. These buttons support labels, icons, and event triggers.

Properties

PropertyValueDescription
TypeGhostUI component type
GroupButtonBelongs to the "Button" group in UI catalog
Identifier19Unique 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
ListNot a list container
MinNo minimum value requirement
MaxNo maximum value constraint

Usage Example

<Button variant="ghost" label="Remove" onClick={handleRemove} icon="trash" />

SDK Integration

This element appears in the Visit Took Place (VTP) document management screen and links to the SDK method:

Method: /profile/appointments/{id}/summary/summaries

Enables upload, update, or removal of medical documents after a visit. This screen includes options to select a document type, enter a name, and attach a file.


Example UI Placement

LevelIDTypeValueDescription
1EditHeader text and close button
1removeGhostRemoveRemoves uploaded document

Notes

  • Ghost buttons often appear near destructive or dismissal actions.
  • Place them near confirmation dialogs or secondary choices.
  • Use icons where applicable to clearly indicate function.