File tree Expand file tree Collapse file tree 3 files changed +48
-0
lines changed
components/examples/toolbar-container Expand file tree Collapse file tree 3 files changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ export default defineConfig({
108108 { label : "Textarea" , link : "components/textarea" } ,
109109 { label : "Textfield" , link : "components/textfield" } ,
110110 { label : "ToolbarButton" , link : "components/toolbar-button" } ,
111+ { label : "ToolbarContainer" , link : "components/toolbar-container" } ,
111112 { label : "Tree" , link : "components/tree" } ,
112113 ] ,
113114 collapsed : true ,
@@ -154,6 +155,7 @@ export default defineConfig({
154155 { label : "Textarea" , link : "components/textarea/api" } ,
155156 { label : "Textfield" , link : "components/textfield/api" } ,
156157 { label : "ToolbarButton" , link : "components/toolbar-button/api" } ,
158+ { label : "ToolbarContainer" , link : "components/toolbar-container/api" } ,
157159 { label : "Tree" , link : "components/tree/api" } ,
158160 ] ,
159161 collapsed : true ,
Original file line number Diff line number Diff line change 1+ <link rel =" stylesheet" href =" /codicon.css" id =" vscode-codicon-stylesheet" />
2+
3+ <script >
4+ import "@vscode-elements/elements/dist/vscode-toolbar-button/vscode-toolbar-button.js";
5+ import "@vscode-elements/elements/dist/vscode-toolbar-container/vscode-toolbar-container.js";
6+ </script >
Original file line number Diff line number Diff line change 1+ ---
2+ title : Toolbar Button
3+ ---
4+
5+ import Demo from " @components/Demo.astro" ;
6+ import PageSwitcher from " @components/PageSwitcher.astro" ;
7+ import ExperimentalComponent from " @components/experimental-component.md" ;
8+ import IconsInfo from " @components/icons-info.md" ;
9+
10+ import Imports from " @components/examples/toolbar-container/Imports.astro" ;
11+
12+ <Imports />
13+ <PageSwitcher />
14+ <ExperimentalComponent />
15+ <IconsInfo />
16+
17+ ## Basic example
18+
19+ Toolbar Container is a simple container to arrange the toolar buttons.
20+
21+ <Demo >
22+ <vscode-toolbar-container >
23+ <vscode-toolbar-button icon = " files" label = " Files" ></vscode-toolbar-button >
24+ <vscode-toolbar-button icon = " search" label = " Search" ></vscode-toolbar-button >
25+ <vscode-toolbar-button icon = " source-control" label = " Source Control" ></vscode-toolbar-button >
26+ <vscode-toolbar-button icon = " debug-alt" label = " Debug" ></vscode-toolbar-button >
27+ <vscode-toolbar-button icon = " extensions" label = " Extensions" ></vscode-toolbar-button >
28+ </vscode-toolbar-container >
29+ <Fragment slot = " html" >
30+ ``` html
31+ <vscode-toolbar-container >
32+ <vscode-toolbar-button icon =" files" label =" Files" ></vscode-toolbar-button >
33+ <vscode-toolbar-button icon =" search" label =" Search" ></vscode-toolbar-button >
34+ <vscode-toolbar-button icon =" source-control" label =" Source Control" ></vscode-toolbar-button >
35+ <vscode-toolbar-button icon =" debug-alt" label =" Debug" ></vscode-toolbar-button >
36+ <vscode-toolbar-button icon =" extensions" label =" Extensions" ></vscode-toolbar-button >
37+ </vscode-toolbar-container >
38+ ```
39+ </Fragment >
40+ </Demo >
You can’t perform that action at this time.
0 commit comments