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
href*string-

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

id*string-

A string that uniquely identifies the item.

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

Navigation item definition.

onClick*func-

Callback fired when the item is clicked.

renderNestedNavigation*func-

Override the component rendered as nested navigation for this item.

title*string-

Item title.

disabledboolfalse

If true, the item is disabled.

expandedboolfalse

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

isSidebarFullyCollapsedboolfalse

If true, the containing sidebar is fully collapsed.

isSidebarFullyExpandedbooltrue

If true, the containing sidebar is fully expanded.

miniboolfalse

If true, the containing sidebar is in mini mode.

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.