Navigation
DashboardNavSectionDefinition
Defines a custom navigation section in the dashboard sidebar.
Individual items can then be added to the section by defining routes in the
routes property of your Dashboard extension.
Signature
interface DashboardNavSectionDefinition {
id: string;
title: string;
icon?: LucideIcon;
order?: number;
}
id
property
stringA unique identifier for the navigation section.
title
property
stringThe display title for the navigation section.
icon
property
LucideIconOptional icon to display next to the section title. The icons should
be imported from 'lucide-react'.
Example
import { PlusIcon } from 'lucide-react';
order
property
numberOptional order number to control the position of this section in the sidebar.
NavMenuBaseItem
The base configuration for navigation items and sections of the main app nav bar.
Signature
interface NavMenuBaseItem {
id: string;
title: string;
icon?: LucideIcon;
order?: number;
placement?: NavMenuSectionPlacement;
requiresPermission?: string | string[];
}
id
property
stringtitle
property
stringicon
property
LucideIconorder
property
numberplacement
property
NavMenuSectionPlacementrequiresPermission
property
string | string[]This can be used to restrict the menu item to the given permission or permissions.
NavMenuItem
Defines an items in the navigation menu.
Signature
interface NavMenuItem extends NavMenuBaseItem {
url: string;
}
- Extends:
NavMenuBaseItem