Nav Items & Dropdowns
Primary Item Schema
php[
'label' => 'Products',
'url' => '/products',
'target' => '_self',
'type' => 'link', // link|dropdown|mega|button|separator
'icon' => '', // Lucide icon name (e.g. 'package')
'badge' => '', // small badge text
'children' => [], // for dropdown or mega type
]
Dropdown
Set type = 'dropdown' and add children — each child is a simple link item:
php[
'label' => 'Features',
'type' => 'dropdown',
'children' => [
[ 'label' => 'Analytics', 'url' => '/features/analytics', 'description' => 'Real-time data' ],
[ 'label' => 'Automation', 'url' => '/features/automation', 'description' => 'Set-and-forget' ],
],
]
Mega Panel
Set type = 'mega' for full-width panels with columns:
php[
'label' => 'Solutions',
'type' => 'mega',
'mega' => [
'columns' => [
[
'heading' => 'By Team',
'items' => [
[ 'label' => 'Marketing', 'url' => '/solutions/marketing', 'icon' => 'megaphone' ],
[ 'label' => 'Engineering', 'url' => '/solutions/eng', 'icon' => 'code' ],
],
],
],
'featured' => [
'image' => 'https://...',
'title' => 'New: OMailer v3.3',
'desc' => 'Now with IP warmup',
'url' => '/plugins/omailer',
],
],
]