# Accept embedded view in custom component

**URL:** <https://forum.inductiveautomation.com/t/accept-embedded-view-in-custom-component/93012>\
**Category:** Module Development\
**Tags:** ignition81, perspective\
**Created:** [July 10, 2024, 2:12pm UTC](https://forum.inductiveautomation.com/t/accept-embedded-view-in-custom-component/93012 "2024-07-10T14:12:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mats\_Sommervold](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@Mats\_Sommervold](https://forum.inductiveautomation.com/u/Mats_Sommervold)\
**Post date:** [July 10, 2024, 2:12pm UTC](https://forum.inductiveautomation.com/t/accept-embedded-view-in-custom-component/93012/1 "2024-07-10T14:12:37Z")

</div>

I am trying to create a library of custom components, however, I cant seem to find out how to create my own components that takes a view or component as a child. Like creating a custom embedded view component.

And to follow up that question. Is it possible to embed a component directly or do you need to place it in a view first?

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [July 10, 2024, 2:47pm UTC](https://forum.inductiveautomation.com/t/accept-embedded-view-in-custom-component/93012/2 "2024-07-10T14:47:50Z")

</div>

Just leaving a comment cuz i have tried to do this before too but was unable to make a container component work.

It has something to do with `ContainerDesignDelegate`, i was able to create the component, but it didnt behave like a container at all so i gave up on that and used a different method for the thing i wanted to do...

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 10, 2024, 11:58pm UTC](https://forum.inductiveautomation.com/t/accept-embedded-view-in-custom-component/93012/3 "2024-07-10T23:58:21Z")

</div>

Basically the extent of what I know:

> [@View as Property in Perspective Component](https://forum.inductiveautomation.com/t/view-as-property-in-perspective-component/66860/2):
>
> For the JSON editor support, you just need to specify a format of view-path in your schema: "path": { "type": "string", "format": "view-path", "description": "Path to the view that will be used as the display for the control.", "default": "" }, At the JSX/React level, you embed a \<View\> from @inductiveautomation/perspective-client... which I'm not sure if you have access to? I don't know off the top of my head the …
