#Modular UI components?

1 messages · Page 1 of 1 (latest)

unique dagger
#

Is it possible to have a UI component, set of cards, whether in the UI or in YAML, and use it in multiple places in lovelace? Like on several different dashboards or subviews?

tame olive
#
west orbit
#

I think if you're in YAML-mode you can use anchors to replicate chunks of code, but I'm not that familiar with it. Nothing in the UI though.

strange fjord
#

Like karwosts mentioned, you'll want to look into using a YAML-based dashboard instead of the normal Storage Mode. [Adding more dashboards with YAML](https://www.home-assistant.io/dashboards/dashboards/#adding-more-dashboards-with-yaml). I recommend going with the second example showing how to set up a normal dashboard and also a YAML-mode dashboard. This way, you can use the UI to help you with your code and then copy it into your other dashboard.