You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/components/sidebar.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ description = "Responsive admin dashboard layout with sticky sidebar, optional t
5
5
+++
6
6
7
7
- Use `data-sidebar-layout` on a container (typically `<body>`) with `<aside data-sidebar>` for the sidebar and `<main>` for content. The sidebar stays sticky while the main content scrolls.
8
-
- On mobile, the sidebar becomes a slide-out overlay toggled by a `[data-sidebar-toggle]` button. To make the sidebar collapsible at all widths, set `data-sidebar-layout="always"`.
8
+
- On mobile, the sidebar becomes a slide-out overlay toggled by a `[data-sidebar-toggle]` button. To show the toggle and make it collapse the sidebar at all widths, set `data-sidebar-layout="always"`.
9
9
- Set the `--sidebar-width` variable to adjust its width globally.
10
10
11
11
<divclass="sidebar-example">
@@ -43,7 +43,7 @@ description = "Responsive admin dashboard layout with sticky sidebar, optional t
43
43
44
44
### Always-collapsible
45
45
46
-
Set `data-sidebar-layout="always"` to keep the toggle visible on all screen sizes.
46
+
Set `data-sidebar-layout="always"` to keep the toggle visible and make it collapse the sidebar on all screen sizes.
47
47
48
48
```html
49
49
<bodydata-sidebar-layout="always">
@@ -76,11 +76,11 @@ Add `data-topnav` to a header element for a full-width top navigation bar. The s
0 commit comments