# Add Separator to Flyout

**URL:** <https://forums.creativeclouddeveloper.com/t/add-separator-to-flyout/2637>\
**Category:** Photoshop\
**Created:** [March 11, 2021, 8:04am UTC](https://forums.creativeclouddeveloper.com/t/add-separator-to-flyout/2637 "2021-03-11T08:04:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joe](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/joe/32/1246_2.png) [@Joe](https://forums.creativeclouddeveloper.com/u/Joe)\
**Post date:** [March 11, 2021, 8:04am UTC](https://forums.creativeclouddeveloper.com/t/add-separator-to-flyout/2637/1 "2021-03-11T08:04:05Z")

</div>

In CEP you could add a separator in the flyout, can you do the same with UXP?

---

<div class="post-metadata">

**Author:** ![simonhenke](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/simonhenke/32/957_2.png) [@simonhenke](https://forums.creativeclouddeveloper.com/u/simonhenke)\
**Post date:** [March 11, 2021, 1:06pm UTC](https://forums.creativeclouddeveloper.com/t/add-separator-to-flyout/2637/2 "2021-03-11T13:06:31Z")

</div>

I was searching for that quite a long time, too, and then just stuck to adding a disabled menu item with something similar to “-------------------------” between other items, which isn’t really a great solution.

Then I saw the correct way to do it somewhere:  
`{label: '-'}`  
will be detected by uxp and converted to a separator line in the menu.  
I really can’t remember where I saw it, I just checked the examples and docs again and couldn’t find it. But as long as it works… 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![Joe](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/joe/32/1246_2.png) [@Joe](https://forums.creativeclouddeveloper.com/u/Joe)\
**Post date:** [March 11, 2021, 1:26pm UTC](https://forums.creativeclouddeveloper.com/t/add-separator-to-flyout/2637/3 "2021-03-11T13:26:01Z")

</div>

Great, thank you 😃

---

<div class="post-metadata">

**Author:** ![kerrishotts](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/kerrishotts/32/8_2.png) [@kerrishotts](https://forums.creativeclouddeveloper.com/u/kerrishotts)\
**Post date:** [March 12, 2021, 5:40pm UTC](https://forums.creativeclouddeveloper.com/t/add-separator-to-flyout/2637/4 "2021-03-12T17:40:32Z")

</div>

Might be in one of our samples…? Or from the prerelease. We didn’t doc it initially because there was a bug where you could only have _one_ of them, but that’s since been fixed. We’re due for a docs update so I’ll look at what needs to be done there to make it more obvious how to do a divider.
