File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
packages/lit-dev-content/site Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 80
80
height : 1px ;
81
81
overflow : hidden;
82
82
}
83
+
84
+ body [code-language-preference = "ts" ] [code-language ]: not ([code-language = "ts" ]) {
85
+ /* Hide JS content when preference is TS. */
86
+ display : none;
87
+ }
88
+
89
+ body [code-language-preference = "js" ] [code-language ]: not ([code-language = "js" ]) {
90
+ /* Hide TS content when preference is JS. */
91
+ display : none;
92
+ }
Original file line number Diff line number Diff line change @@ -26,3 +26,15 @@ Creating a Lit component involves a number of concepts:
26
26
Here's a sample component:
27
27
28
28
{% playground-example "v3-docs/components/overview/simple-greeting" "simple-greeting.ts" %}
29
+
30
+ <div code-language =" ts " >
31
+
32
+ {% aside "info"%}
33
+
34
+ This example uses TypeScript decorators.
35
+
36
+ See the [ Decorators] ( /docs/v3/components/decorators ) documentation for more information on configuring TypeScript for decorators.
37
+
38
+ {% endaside %}
39
+
40
+ </div >
You can’t perform that action at this time.
0 commit comments