File tree Expand file tree Collapse file tree 3 files changed +44
-14
lines changed Expand file tree Collapse file tree 3 files changed +44
-14
lines changed Original file line number Diff line number Diff line change 1
1
---
2
+ import InfoBlock from " ./InfoBlock.astro" ;
2
3
---
3
- <p >
4
- This component is compatible with standard <code >< form> </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 >
7
4
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 >< form> </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 >
Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ title: Getting started
3
3
---
4
4
5
5
import ApiDocsBadge from " @components/ApiDocs/ApiDocsBadge.astro" ;
6
+ import InfoBlock from " @components/InfoBlock.astro" ;
6
7
7
8
## What is VSCode Elements?
8
9
@@ -12,6 +13,14 @@ in the "webview." VSCode Elements addresses this by re-implementing these UI con
12
13
components (aka custom elements), and introducing some new ones. This allows for the creation of
13
14
user interfaces that look like the native user interface of VSCode.
14
15
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
+
15
24
## Installation
16
25
17
26
You can access the library as NPM package:
You can’t perform that action at this time.
0 commit comments