Skip to content

Commit 5e5e407

Browse files
committed
Add toolbar container
1 parent 479301a commit 5e5e407

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

astro.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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,
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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>
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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>

0 commit comments

Comments
 (0)