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: examples/reference/layouts/Drawer.ipynb
+15-18Lines changed: 15 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -17,24 +17,7 @@
17
17
"cell_type": "markdown",
18
18
"id": "a6c6a705-0ea1-4a19-a264-eacac2b2544e",
19
19
"metadata": {},
20
-
"source": [
21
-
"The `Drawer` component (akin to a sidebar) provides ergonomic access to destinations in a site or app functionality.\n",
22
-
"\n",
23
-
"## Parameters:\n",
24
-
"For details on other options for customizing the component see the layout and styling how-to guides.\n",
25
-
"\n",
26
-
"### Core\n",
27
-
"\n",
28
-
"* **`open`** (`boolean`): Whether the `Drawer` is open.\n",
29
-
"\n",
30
-
"### Display\n",
31
-
"\n",
32
-
"* **`anchor`** (`Literal[\"left\", \"right\", \"bottom\", \"right\"]`): Where to position the `Drawer`.\n",
33
-
"* **`size`** (`int`): The width or height depending on whether the `Drawer` is rendered on the left/right or top/bottom respectively.\n",
34
-
"* **`variant`** (`Literal[\"temporary\", \"persistent\", \"permanent\"]`): Whether the Drawer is temporary, persistent or permanent.\n",
35
-
"\n",
36
-
"---"
37
-
]
20
+
"source": "The `Drawer` component (akin to a sidebar) provides ergonomic access to destinations in a site or app functionality.\n\n## Parameters:\nFor details on other options for customizing the component see the layout and styling how-to guides.\n\n### Core\n\n* **`open`** (`boolean`): Whether the `Drawer` is open.\n\n### Display\n\n* **`anchor`** (`Literal[\"left\", \"right\", \"bottom\", \"top\"]`): Where to position the `Drawer`.\n* **`dock_position`** (`Literal[\"start\", \"middle\", \"end\"]`): Position of the toggle tab along the drawer edge (only applies to 'docked' variant).\n* **`size`** (`int`): The width or height depending on whether the `Drawer` is rendered on the left/right or top/bottom respectively.\n* **`variant`** (`Literal[\"temporary\", \"persistent\", \"permanent\", \"docked\"]`): Whether the Drawer is temporary, persistent, permanent or docked.\n\n---"
38
21
},
39
22
{
40
23
"cell_type": "markdown",
@@ -140,6 +123,20 @@
140
123
").preview()"
141
124
]
142
125
},
126
+
{
127
+
"cell_type": "markdown",
128
+
"id": "cbad6d15",
129
+
"source": "### Docked drawer\n\nA docked drawer renders a small toggle tab on the edge where it's anchored, allowing users to open and close it without needing a separate button. When closed, only the tab is visible; when open, the drawer slides out with the tab attached to close it again.\n\nUse `dock_position` to control where the tab appears along the drawer edge (`\"start\"`, `\"middle\"`, or `\"end\"`):",
0 commit comments