Skip to main content

Spacer


Spacers add vertical or horizontal whitespace between elements. They do not accept user input, trigger events, or render visible content. Use spacers to control layout flow or alignment in structured UI blocks.

Properties

PropertyValueDescription
TypeSpacerUI component type
GroupGapBelongs to the "Gap" layout group
Identifier45Unique element ID
PreviewRepresents a visual gap, not content
ValueNo value field
MandatoryOptional element
ErrorNo validation logic
MinNo minimum constraint
MaxNo maximum constraint
Read-onlyAlways static
ListNot a list container
Text, IconNo labels or icons
ChildrenNo nested components
EventDoes not trigger actions
ShadeNo background shading

Usage Example

<Spacer height={16} />

SDK Integration

This element appears in the Availability Status Modal and aligns components that use the SDK method:

Method: /account/doctor/availability-status/cannot-be-changed

Displays a modal when availability cannot be saved due to account restrictions. The spacer separates action buttons and notices for visual clarity.


Example UI Placement

LevelIDTypeValueDescription
1spacerSpacerAdds spacing between rows

Notes

  • Use multiple spacers to create grouped layout blocks.
  • Avoid using spacers for fixed positioning. Prefer layout wrappers or containers.
  • Does not impact accessibility or form behavior.