Skip to main content

Spacer Widget

Overview

The Spacer widget is a non-interactive layout utility used to add vertical space between interface components. It provides consistent spacing control while supporting dynamic visibility and styling.

Spacer Widget

Basic Configuration

Global Settings

Name

  • Field: Name
  • Description: Display name for the widget in the interface builder
  • Type: Text input
  • Required: Yes

Variable/Model

  • Field: Variable/Model
  • Description: Not applicable – Spacer does not bind to a model
  • Type: N/A
  • Required: No
Spacer Configuration

Validation

  • Available: Controls if the widget is available on the screen
  • Visibility: Controls whether the spacer is displayed
  • Required: Not applicable
  • Disable: Not applicable
Spacer Validation

Styling

Layout Options

  • Width: Inherits from parent container
  • Height: Configurable via widget settings
  • Class: Add custom CSS classes for additional styling

Dynamic Classes

Dynamic classes can be applied using configuration:

{
"hidden": "{{isMobile}}",
"highlight": "{{isImportant}}"
}
Spacer Styling

Best Practices

  1. Use only when necessary – Prefer margin/padding for simple spacing
  2. Keep consistent sizes – Apply standard spacing values across the interface
  3. Responsive design – Use relative units (vh, %, em) when targeting multiple screen sizes
  4. Combine with layouts – Works best when used in grid or row containers

Accessibility Considerations

  • Spacer has no impact on accessibility tools
  • Ignored by screen readers
  • Does not affect keyboard navigation

Performance Tips

  • Very lightweight, minimal rendering cost
  • Use static sizes where possible for predictable layouts

Troubleshooting

Spacer not visible

  • Check visible property is set to true
  • Ensure height is configured with valid CSS units

Unexpected size

  • Verify container styling does not override spacer height
  • Inspect computed CSS with developer tools

Class not applied

  • Remove commas in class names
  • Ensure CSS class definitions exist