mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-14 15:08:59 +00:00
68 lines
1.6 KiB
Markdown
68 lines
1.6 KiB
Markdown
---
|
|
layout: page
|
|
title: "Vertical Stack Card"
|
|
sidebar_label: Vertical Stack
|
|
description: "The Vertical Stack card allows you to stack multiple cards together"
|
|
date: 2018-07-01 10:28 +00:00
|
|
sidebar: true
|
|
comments: false
|
|
sharing: true
|
|
footer: true
|
|
---
|
|
|
|
Vertical stack allows you to group multiple cards so they always sit in the same column.
|
|
|
|
{% configuration %}
|
|
type:
|
|
required: true
|
|
description: vertical-stack
|
|
type: string
|
|
cards:
|
|
required: true
|
|
description: List of cards.
|
|
type: list
|
|
{% endconfiguration %}
|
|
|
|
### {% linkable_title Examples %}
|
|
|
|
Basic example:
|
|
|
|
```yaml
|
|
- type: vertical-stack
|
|
cards:
|
|
- type: picture-entity
|
|
entity: camera.demo_camera
|
|
show_info: false
|
|
- type: entities
|
|
entities:
|
|
- binary_sensor.movement_backyard
|
|
```
|
|
|
|
<p class="img">
|
|
<img src="/images/lovelace/lovelace_vertical-stack.png" alt="Picture- and entities-card in a stack">
|
|
Picture- and entities-card in a stack.
|
|
</p>
|
|
|
|
Combination of vertical and horizontal stack card:
|
|
|
|
```yaml
|
|
- type: vertical-stack
|
|
cards:
|
|
- type: picture-entity
|
|
entity: group.all_lights
|
|
image: /local/house.png
|
|
- type: horizontal-stack
|
|
cards:
|
|
- type: picture-entity
|
|
entity: light.ceiling_lights
|
|
image: /local/bed_1.png
|
|
- type: picture-entity
|
|
entity: light.bed_light
|
|
image: /local/bed_2.png
|
|
```
|
|
|
|
<p class="img">
|
|
<img src="/images/lovelace/lovelace_vertical-horizontal-stack.png" alt="Create a grid layout using vertical and horizontal stack">
|
|
Create a grid layout using vertical and horizontal stack.
|
|
</p>
|