mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-09 04:29:03 +00:00
44 lines
1.3 KiB
Markdown
44 lines
1.3 KiB
Markdown
---
|
|
title: "Horizontal Stack Card"
|
|
sidebar_label: Horizontal Stack
|
|
description: "The Horizontal Stack card allows you to stack together multiple cards, so they always sit next to each other in the space of one column."
|
|
---
|
|
|
|
The Horizontal Stack card allows you to stack together multiple cards, so they always sit next to each other in the space of one column.
|
|
|
|
To add the Horizontal Stack card to your user interface, click the Lovelace menu (three dots at the top right of the screen) and then **Edit Dashboard**. Click the "Add Card" button in the bottom right corner and select **Horizontal Stack** from the card picker. All options for this card can be configured via the user interface.
|
|
|
|
{% configuration %}
|
|
type:
|
|
required: true
|
|
description: "`horizontal-stack`"
|
|
type: string
|
|
title:
|
|
required: false
|
|
description: Title of stack.
|
|
type: string
|
|
cards:
|
|
required: true
|
|
description: List of cards.
|
|
type: list
|
|
{% endconfiguration %}
|
|
|
|
## Example
|
|
|
|
```yaml
|
|
type: horizontal-stack
|
|
title: Lights
|
|
cards:
|
|
- type: picture-entity
|
|
image: /local/bed_1.png
|
|
entity: light.ceiling_lights
|
|
- type: picture-entity
|
|
image: /local/bed_2.png
|
|
entity: light.bed_light
|
|
```
|
|
|
|
<p class='img'>
|
|
<img src='/images/lovelace/lovelace_horizontal_stack.PNG' alt='Two picture cards in a horizontal stack card'>
|
|
Two Picture cards in a Horizontal Stack card.
|
|
</p>
|