Added docs for custom elements. (#5836)

This commit is contained in:
Jerad Meisner 2018-07-20 07:27:30 -07:00 committed by c727
parent 60c24f59e5
commit 7bb3a888c5

View File

@ -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.