# Custom component in template Dashboard 2.0

**URL:** https://discourse.nodered.org/t/custom-component-in-template-dashboard-2-0/97603
**Category:** Dashboard
**Tags:** dashboard-2
**Created:** [13 June 2025 11:50 UTC](https://discourse.nodered.org/t/custom-component-in-template-dashboard-2-0/97603 "2025-06-13T11:50:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Aaqu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aaqu/32/101407_2.png) [@Aaqu](https://discourse.nodered.org/u/Aaqu)
#### Post date: [13 June 2025 11:50 UTC](https://discourse.nodered.org/t/custom-component-in-template-dashboard-2-0/97603/1 "2025-06-13T11:50:22Z")

</div>

Is it possible to build your own component in template dashboard 2 and use it in this or another template?  
For example your own styled button or something that contains simple logic.

---

<div class="post-metadata">

### Author: ![omrid](https://avatars.discourse-cdn.com/v4/letter/o/77aa72/32.png) [@omrid](https://discourse.nodered.org/u/omrid)
#### Post date: [13 June 2025 12:59 UTC](https://discourse.nodered.org/t/custom-component-in-template-dashboard-2-0/97603/2 "2025-06-13T12:59:16Z")

</div>

The most straightforward way is to include the required styling in a custom CSS class, defined in a "CSS template" (scoped for the current page or all pages).  
Another way would be to define the button as a generic "teleport"

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [13 July 2025 13:00 UTC](https://discourse.nodered.org/t/custom-component-in-template-dashboard-2-0/97603/3 "2025-07-13T13:00:29Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
