# Using Directives in a Custom Component

**URL:** <https://forums.realmacsoftware.com/t/using-directives-in-a-custom-component/49461>\
**Category:** Elements API\
**Created:** [August 4, 2025, 7:13pm UTC](https://forums.realmacsoftware.com/t/using-directives-in-a-custom-component/49461 "2025-08-04T19:13:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![handshaper](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/handshaper/32/27373_2.png) [@handshaper](https://forums.realmacsoftware.com/u/handshaper)\
**Post date:** [August 4, 2025, 7:13pm UTC](https://forums.realmacsoftware.com/t/using-directives-in-a-custom-component/49461/1 "2025-08-04T19:13:24Z")

</div>

@ben @dan Currently, if I use directives in a custom component, each with its own name, as required. See below.

 ![CleanShot 2025-08-04 at 09.05.53@2x](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/f/c/fcf16e14a30ebf5bcdf8cad4778b2510d0764749.png)

The content areas are added to the component, which is handy, but what I would like to request is that these content areas use the titles we had assigned to each of the dropzones. This will go a long way in making it easier to identify them, which will also help avoid mistakes.

Below are all of the named dropzones I created,

 ![CleanShot 2025-08-04 at 09.06.36@2x](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/3/5/350e50a5c8bbbe407e301e9f7ee024d8d5e50dca.png)

Is this something that might be possible to add, as it would make life a lot easier?

---

<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:** [August 4, 2025, 7:14pm UTC](https://forums.realmacsoftware.com/t/using-directives-in-a-custom-component/49461/2 "2025-08-04T19:14:57Z")

</div>

all you need to do is assign a `title` to each of your drop zones, like this:

```auto
@dropzone("dropzoneId", title: "Something Descriptive")

```

Hope that helps 🙂

---

<div class="post-metadata">

**Author:** ![handshaper](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/handshaper/32/27373_2.png) [@handshaper](https://forums.realmacsoftware.com/u/handshaper)\
**Post date:** [August 4, 2025, 7:16pm UTC](https://forums.realmacsoftware.com/t/using-directives-in-a-custom-component/49461/3 "2025-08-04T19:16:10Z")

</div>

Ah, so the title is independent of the ID, awesome, I’m on it!
