Skip to main content

Layout

Configuration options for the navbar layout and behavior.

NameTypeDefaultDescription
auto_paddingAuto Padding-Add padding to your Home Assistant dashboard to prevent overlaps
reflect_child_stateboolean-Determines if each route item should be displayed as selected when any of its popup items is selected

Auto Padding

Automatically adds padding to your Home Assistant dashboard to prevent cards from overlapping with navbar-card. This eliminates the need for manual CSS padding adjustments in your Home Assistant theme.

NameTypeDefaultDescription
enabledbooleantrueWhether to automatically add padding to prevent overlaps
desktop_pxnumber100Base padding in pixels for desktop mode (applied to the side or edge defined by your desktop.position)
mobile_pxnumber80Base padding in pixels for mobile mode (applied to the bottom of the view)
media_player_pxnumber100Extra padding reserved when the media player widget is visible (added to desktop top/bottom and mobile bottom)
note

The desktop_px padding is automatically applied to the appropriate side of the screen based on your navbar's desktop.position setting.



Example

type: custom:navbar-card
layout:
reflect_child_state: true
auto_padding:
enabled: true
desktop_px: 100
mobile_px: 80
media_player_px: 100