Skip to content

Commit a65eff8

Browse files
committed
Add link to Playground project
1 parent 4001729 commit a65eff8

File tree

3 files changed

+44
-14
lines changed

3 files changed

+44
-14
lines changed

src/components/FormControlInfo.astro

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
---
2+
import InfoBlock from "./InfoBlock.astro";
23
---
3-
<p>
4-
This component is compatible with standard <code>&lt;form&gt;</code> elements. For more information on form
5-
submission and client-side validation, please refer to the <a href="/working-with-forms">Working with forms</a> section.
6-
</p>
74

8-
<style>
9-
p {
10-
background-color: #cce5ff;
11-
border-style: solid;
12-
border-color: #b8daff;
13-
border-width: 1px;
14-
color: #004085;
15-
padding: 15px;
16-
}
17-
</style>
5+
<InfoBlock>
6+
<p>
7+
This component is compatible with standard <code>&lt;form&gt;</code>
8+
elements. For more information on form submission and client-side
9+
validation, please refer to the <a href="/working-with-forms"
10+
>Working with forms</a
11+
> section.
12+
</p>
13+
</InfoBlock>

src/components/InfoBlock.astro

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<div class="InfoBlock">
2+
<slot />
3+
</div>
4+
5+
<style>
6+
.InfoBlock {
7+
background-color: #cce5ff;
8+
border-style: solid;
9+
border-color: #b8daff;
10+
border-width: 1px;
11+
color: #004085;
12+
margin: 20px 0;
13+
padding: 15px;
14+
}
15+
</style>
16+
17+
<style is:global>
18+
.InfoBlock p:first-child {
19+
margin-top: 0;
20+
}
21+
22+
.InfoBlock p:last-child {
23+
margin-bottom: 0;
24+
}
25+
</style>

src/content/articles/getting-started.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: Getting started
33
---
44

55
import ApiDocsBadge from "@components/ApiDocs/ApiDocsBadge.astro";
6+
import InfoBlock from "@components/InfoBlock.astro";
67

78
## What is VSCode Elements?
89

@@ -12,6 +13,14 @@ in the "webview." VSCode Elements addresses this by re-implementing these UI con
1213
components (aka custom elements), and introducing some new ones. This allows for the creation of
1314
user interfaces that look like the native user interface of VSCode.
1415

16+
<InfoBlock>
17+
18+
The appearance of components provided by VSCode Elements depends on the presence of hundreds of CSS
19+
variables and default styles supplied by the VSCode Webview. The
20+
[Webview Playground](https://github.com/vscode-elements/webview-playground) was created to emulate this environment.
21+
22+
</InfoBlock>
23+
1524
## Installation
1625

1726
You can access the library as NPM package:

0 commit comments

Comments
 (0)