kinghat / tabbed-card

a custom card for home assistant that utilizes tabs to segregate individual cards.
MIT License
87 stars 10 forks source link

Enhancement: More than one card per TAB #95

Closed superpower10 closed 1 year ago

superpower10 commented 1 year ago

It would be great if it would be possible to have more than one card in one tab.

For e.g.:

cards:
  - card: button
    ...
  - card: button
    ...
kinghat commented 1 year ago

you can do this with the grid card provided by ha:

image

type: custom:tabbed-card
tabs:
  - card:
      square: true
      columns: 2
      type: grid
      cards:
        - show_name: true
          show_icon: true
          type: button
          tap_action:
            action: toggle
          entity: light.bed_light
        - show_name: true
          show_icon: true
          type: button
          tap_action:
            action: toggle
          entity: light.bed_light
        - show_name: true
          show_icon: true
          type: button
          tap_action:
            action: toggle
          entity: light.bed_light
    attributes:
      label: Grid Card

please close if this solves your issue.

superpower10 commented 1 year ago

Thank you. That helped!