Skip to main content

Configuration Reference

Navbar Card example imageNavbar Card example image

Navbar Card's configuration is structured into logical sections, making it easy to customize different aspects of the card:

NameTypeDefaultDescription
routesRoutesRequiredArray of navigation items to display in the navbar
desktopDesktop-Desktop-specific layout and behavior settings
mobileMobile-Mobile-specific layout and behavior settings
layoutLayout-General layout configuration
stylesStyles-Custom CSS styling options
templateTemplate-Predefined template to use as base configuration
hapticHaptic-Configure haptic feedback on interactions
media_playerMedia Player-[BETA] Media player integration for mobile view

Basic Example

Here's a basic configuration example for navbar-card:

type: custom:navbar-card
haptic:
url: false
tap_action: false
hold_action: true
double_tap_action: true
desktop:
position: left
show_labels: true
mobile:
show_labels: false
media_player:
entity: media_player.your_media_player
album_cover_background: true
routes:
- url: /lovelace/home
icon: mdi:home
label: Home
- url: /lovelace/home/devices
icon: mdi:devices
label: Devices
hold_action:
action: navigate
navigation_path: /config/devices/dashboard
- url: /config/automation/dashboard
icon: mdi:creation
label: Automations
- url: /config/dashboard
icon: mdi:cog
label: Settings
- icon: mdi:dots-horizontal
label: More
tap_action:
action: open-popup
popup:
- icon: mdi:cog
url: /config/dashboard
- icon: mdi:hammer
url: /developer-tools/yaml
- icon: mdi:power
tap_action:
action: call-service
service: homeassistant.restart
service_data: {}
confirmation:
text: Are you sure you want to restart Home Assistant?
styles: |
.navbar {
--navbar-primary-color:rgb(0, 0, 0);
}
.navbar-card {
background: rgba(255, 255, 255, 0.4);
backdrop-filter: blur(10px);
border: none;
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1) !important;
}