# Options to Selected custom component in layout field

**URL:** <https://discourse.getcockpit.com/t/options-to-selected-custom-component-in-layout-field/2763>\
**Category:** Uncategorized\
**Created:** [March 30, 2023, 12:27pm UTC](https://discourse.getcockpit.com/t/options-to-selected-custom-component-in-layout-field/2763 "2023-03-30T12:27:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![creativeplusplus](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/creativeplusplus/32/844_2.png) [@creativeplusplus](https://discourse.getcockpit.com/u/creativeplusplus)\
**Post date:** [March 30, 2023, 12:27pm UTC](https://discourse.getcockpit.com/t/options-to-selected-custom-component-in-layout-field/2763/1 "2023-03-30T12:27:16Z")

</div>

Dear Arthur,

is there any options to show only selected components in layout fields in v2 ?  
like this link [New Addon - Custom Components](https://discourse.getcockpit.com/t/new-addon-custom-components/401)

thanks

---

<div class="post-metadata">

**Author:** ![artur](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/artur/32/4_2.png) [@artur](https://discourse.getcockpit.com/u/artur)\
**Post date:** [March 30, 2023, 3:52pm UTC](https://discourse.getcockpit.com/t/options-to-selected-custom-component-in-layout-field/2763/2 "2023-03-30T15:52:18Z")

</div>

![image](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/2X/1/1d3251d33fc378cdf23952381758404ad1193fca.png)

---

<div class="post-metadata">

**Author:** ![creativeplusplus](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/creativeplusplus/32/844_2.png) [@creativeplusplus](https://discourse.getcockpit.com/u/creativeplusplus)\
**Post date:** [March 31, 2023, 1:48am UTC](https://discourse.getcockpit.com/t/options-to-selected-custom-component-in-layout-field/2763/3 "2023-03-31T01:48:25Z")

</div>

Thanks Artur

but my layout is only json no field, I will check again

 ![Screenshot 2023-03-31 at 08.46.01](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/2X/a/a5977252e6a3e3f994159e1c835a701363a5e6c3.png)

or just use json

```auto
{
  allowedComponents: [
    'image',
    'heading',
    'richtext',
  ],
}

```

---

<div class="post-metadata">

**Author:** ![artur](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/artur/32/4_2.png) [@artur](https://discourse.getcockpit.com/u/artur)\
**Post date:** [March 31, 2023, 10:40am UTC](https://discourse.getcockpit.com/t/options-to-selected-custom-component-in-layout-field/2763/4 "2023-03-31T10:40:09Z")

</div>

Do you use the latest Cockpit version? Should be available in \>= v2.4.1
