From 7bb3a888c5a5f51135ed2978f45541ddc6ccb11f Mon Sep 17 00:00:00 2001 From: Jerad Meisner Date: Fri, 20 Jul 2018 07:27:30 -0700 Subject: [PATCH] Added docs for custom elements. (#5836) --- source/_lovelace/picture-elements.markdown | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/source/_lovelace/picture-elements.markdown b/source/_lovelace/picture-elements.markdown index 771684130e0..033bb953f66 100644 --- a/source/_lovelace/picture-elements.markdown +++ b/source/_lovelace/picture-elements.markdown @@ -246,6 +246,23 @@ style: type: object {% endconfiguration %} +### {% linkable_title Custom Elements %} + +{% configuration %} +type: + required: true + description: 'Card name with `custom:` prefix (e.g. `custom:my-custom-card`)' + type: string +style: + required: true + description: Position and style the element using CSS. + type: object +{% endconfiguration %} + +The process for creating and referencing custom elements is the same as for custom cards. +Please see the [developer docs on creating custom cards](https://developers.home-assistant.io/docs/en/lovelace_custom_card.html) +for more information. + ## {% linkable_title How to use the style object %} Position and style your elements using [CSS](https://en.wikipedia.org/wiki/Cascading_Style_Sheets). More/other keys are also possible.