SMARTi watermark
Drag & Drop Card Wiki · Section 05.1

Layout

A comprehensive and user-friendly guide to creating modern, polished, and fully responsive Home Assistant dashboards using the Drag & Drop Card. This wiki combines clear explanations, practical real-world configuration examples, step-by-step walkthroughs, and visual references where they add the most value — making it easy for both beginners and advanced users to design powerful and visually appealing dashboards.

12 sections Config examples HADS-ready exports
Demo focus
Drag, resize, snap, export.
Add screenshots from admin to turn this section into a richer visual guide.

Layout

Layout controls how the Drag & Drop canvas is sized and how cards are positioned inside it. This is the foundation of the dashboard, because every tab, layer, connector, and visual detail depends on a stable layout.

Use layout settings to choose the canvas size, grid behavior, overlap behavior, and how cards should resize. A wall panel usually benefits from a predictable preset size, while a mobile dashboard often needs responsive layouts.

Canvas size

The canvas can be based on a preset, a fixed custom size, or automatic sizing. Preset sizing is usually the easiest place to start because it gives the editor a stable design surface.

Settings reference

Dashboard settingYAML settingWhat it doesValue possibilities
Storage keystorage_keyNames where the layout is saved.Any unique text value.
Grid sizegridControls the snap grid for moving and resizing cards.Number. Common values: 10, 20, 40.
Grid size: show what this setting changes.
Grid size: show what this setting changes.
Live snap while draggingdrag_live_snapMakes cards snap to the grid during dragging.true or false.
Live snap while dragging: show what this setting changes.
Live snap while dragging: OFF
Live snap while dragging: show what this setting changes.
Live snap while dragging: ON
Canvas size modecontainer_size_modeChooses how the canvas size is calculated.Preset, fixed custom size, or automatic sizing.
Canvas size mode: show what this setting changes.
Canvas size mode: Static vs Auto
Canvas presetcontainer_presetSelects a predefined canvas size.Preset name such as Full HD where supported.
Fixed widthcontainer_fixed_widthSets the canvas width when using fixed custom size.Number.
Fixed heightcontainer_fixed_heightSets the canvas height when using fixed custom size.Number.
Disable overlapdisable_overlapPrevents cards from being placed on top of each other.true or false.
Disable overlap: show what this setting changes.
Disable overlap: how cads behave with this setting turned on. CAUTION! When using this feature, it can mess up your existing layout.
Auto resize cardsauto_resize_cardsLets DDC help cards fit their visual boxes.true or false.
Outer grid bufferouter_grid_bufferAdds breathing room around the outside of the canvas.Number.
Outer grid buffer: show what this setting changes.
Outer grid buffer: ON / OFF

Good layout practice

Use one clear structure before adding decoration. Align cards to the same grid, keep related controls together, and avoid stacking cards unless the overlap has a clear purpose.


Last updated 2026-05-28.