Skip to content

Commit ed3fd27

Browse files
committed
add demo for sidebarCollapsed
1 parent c2d8711 commit ed3fd27

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
@@ -122,6 +122,12 @@ The layout sidebar can be hidden if needed with the `hideNavigation` prop.
122122

123123
{{"demo": "DashboardLayoutSidebarHidden.js", "height": 400, "iframe": true}}
124124

125+
### Toggle sidebar
126+
127+
The sidebar can be toggled if needed with the `sidebarCollapsed` prop.
128+
129+
{{"demo": "DashboardLayoutSidebarCollapsedProp.js", "height": 400, "iframe": true}}
130+
125131
## Full-size content
126132

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

0 commit comments

Comments
 (0)