Skip to contentSkip to content

DashboardSidebarPageItem API

API reference docs for the React DashboardSidebarPageItem component. Learn about the props, CSS, and other APIs of this exported module.

Demos

Import

import { DashboardSidebarPageItem } from '@toolpad/core/DashboardLayout';

Props

NameTypeDefaultDescription
item*{ action?: node, children?: Array<object
| { kind: 'header', title: string }
| { kind: 'divider' }>, icon?: node, kind?: 'page', pattern?: string, segment?: string, title?: string }
-

Navigation page item definition.

disabledboolfalse

If true, the item is disabled.

expandedboolfalse

If true, expands any nested navigation in the item, otherwise collapse it.

hrefstringgetItemPath(navigationContext, item)

Link href for when the item is rendered as a link.

LinkComponentelementTypeLink

The component used to render the item as a link.

selectedboolfalse

Use to apply selected styling.

The component cannot hold a ref.

Source code

If you did not find the information in this page, consider having a look at the implementation of the component for more detail.