Skip to content

Commit 9aaee1f

Browse files
committed
add demo for sidebarCollapsed
1 parent 374dfbf commit 9aaee1f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/data/toolpad/core/components/dashboard-layout/dashboard-layout.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,12 @@ The layout sidebar can be hidden if needed with the `hideNavigation` prop.
126126

127127
{{"demo": "DashboardLayoutSidebarHidden.js", "height": 400, "iframe": true}}
128128

129+
### Toggle sidebar
130+
131+
The sidebar can be toggled if needed with the `sidebarCollapsed` prop.
132+
133+
{{"demo": "DashboardLayoutSidebarCollapsedProp.js", "height": 400, "iframe": true}}
134+
129135
## Full-size content
130136

131137
The layout content can take up the full available area with styles such as `flex: 1` or `height: 100%`.

0 commit comments

Comments
 (0)