-
Notifications
You must be signed in to change notification settings - Fork 1
02 Layout.md
aspenrt78 edited this page Nov 28, 2025
·
1 revision
Controls arrangement and alignment of icon, name, label, and state within the button.
Defines the structural arrangement of major UI elements.
icon_nameicon_statename_stateverticalhorizontalicon_onlyname_only
layout: icon_nameIcon on top or left, name below or right.
Icon paired with entity state text.
Name becomes dominant; state displayed beneath.
All elements stacked top-to-bottom.
All elements arranged left-to-right.
Icon centered; name and state hidden automatically.
Name displayed alone; icon hidden.
Controls horizontal alignment of all grid elements.
leftcenterright
styles:
grid:
- justify-items: centerButton Builder converts alignment selection to valid CSS grid alignment rules.
Button Builder produces its own grid-template-areas depending on layout:
styles:
grid:
- grid-template-areas: '"i" "n" "s"'Where:
-
i= icon -
n= name -
s= state or label
Templates adjust automatically when the user enables/disables elements.
- Alignment affects name, state, icon, and label simultaneously.
- Some layouts hide non-applicable elements automatically.
- State and label positioning depend on both layout and theme settings.
Getting Started
Configuration
Advanced
Help