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';
Name | Type | Default | Description |
---|---|---|---|
href* | string | - | 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. |
disabled | bool | false | If |
expanded | bool | false | If |
isSidebarFullyCollapsed | bool | false | If |
isSidebarFullyExpanded | bool | true | If |
Link | elementType | - | The component used to render the item as a link. |
mini | bool | false | If |
selected | bool | false | Use to apply selected styling. |
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.