Skip to main content






Applies only to Mobile Apps and Reactive Web Apps



Margin Container

  • Edit
    Collaborate with us
    Edit this page on GitHub
  • You can use the Margin Container UI Pattern to add symmetrical padding around a container.

    How to use the Margin Container UI Pattern

    1. In Service Studio, in the Toolbox, search for Margin Container.

      The Margin Container widget is displayed.

    2. From the Toolbox, drag the Margin Container widget into the Main Content area of your application's screen.

      You can add as many Margin Container widgets as you want. In this example, we add 2.

    3. Add the relevant content to the Margin Container placeholder.

      In this example we add an image widget to each of the placeholders and on the Properties tab, import an image using the Image dropdown.

    After following these steps and publishing the module, you can test the pattern in your app.


    Property Description
    ExtendedClass (Text): Optional

    Add custom style classes to the Margin Container UI Pattern. You define your custom style classes in your application using CSS.


    • Blank - No custom styles are added (default value).
    • "myclass" - Adds the myclass style to the Margin Container UI styles being applied.
    • "myclass1" "myclass2" - Adds the myclass1 and myclass2 styles to the Margin Container UI styles being applied.
    • Was this article helpful?