# Wrapper Component

**URL:** <https://forums.realmacsoftware.com/t/wrapper-component/47037>\
**Category:** Elements\
**Created:** [April 3, 2025, 9:54am UTC](https://forums.realmacsoftware.com/t/wrapper-component/47037 "2025-04-03T09:54:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beblebroks](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@Beblebroks](https://forums.realmacsoftware.com/u/Beblebroks)\
**Post date:** [April 3, 2025, 9:54am UTC](https://forums.realmacsoftware.com/t/wrapper-component/47037/1 "2025-04-03T09:54:55Z")

</div>

Hi

I realized that most of the existing container or grid components are having a default z-index of 30. So when I use those to wrap content for a global componet I am having to much props set.

Maybe something like the mui `Box` in react would be nice. A plain `div` with only custom classes and a drop zone to throw stuff inside. I need to create that custom componet on most of my projects all the time.

Use case:

- Nav Bar (z-index 20)
- Background of Navbar (z-index 15)
- Hero Banner (z-index 16)

So when scrolling down the navbar would be on top of the hero and when sliding out the background becomes visible. Navbar and background should be fixed on top of the screen. If you try to create a global component it wont work except when building a custom component.

---

<div class="post-metadata">

**Author:** ![ben](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/ben/32/28488_2.png) [@ben](https://forums.realmacsoftware.com/u/ben)\
**Post date:** [April 3, 2025, 10:28am UTC](https://forums.realmacsoftware.com/t/wrapper-component/47037/2 "2025-04-03T10:28:26Z")

</div>

This is something we’ve run in to, and I have been thinking about if/how we could make this a bit more obvious/robust/easier to fix.

What you can do for now is: on the Container(s), if you set the `Layout->Isolation` property to `Isolate` it should fix your issue.

 ![CleanShot 2025-04-03 at 12.27.48@2x](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/7/3/7313719473823ccda6a3b3e77ae9ed794bd1615f.png)

---

<div class="post-metadata">

**Author:** ![Beblebroks](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@Beblebroks](https://forums.realmacsoftware.com/u/Beblebroks)\
**Post date:** [April 3, 2025, 10:35am UTC](https://forums.realmacsoftware.com/t/wrapper-component/47037/3 "2025-04-03T10:35:16Z")

</div>

will give it a try
