Dynamically stack cards horizontally or vertically, depending on device width
Install threshold-stack.js as a module.
resources:
- url: /local/threshold-stack.js
type: moduletype: custom:threshold-stack
threshold: <pixels>px
cards:
...If the device is at least pixels pixels wide, cards will be displayed as a horizontal-stack.
If the device is less than pixels pixels wide, cards will be displayed as a vertical-stack.
thresholdThreshold in pixels forhorizontal-stack. Default:800pxcardsRequired Cards to render; works particularly well as avertical-stackcontainer
