Skip to content

Commit 3dc7a65

Browse files
authoredOct 8, 2024
[docs] Add data/signals docs (#1372)
1 parent 0555ca6 commit 3dc7a65

File tree

10 files changed

+807
-77
lines changed

10 files changed

+807
-77
lines changed
 

‎package-lock.json

+99-70
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎packages/lit-dev-content/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@
187187
"@lit-labs/motion": "^1.0.1",
188188
"@lit-labs/react": "^1.0.8",
189189
"@lit-labs/task": "^3.0.2",
190+
"@lit-labs/signals": "^0.1.1",
190191
"@lit/context": "^1.1.0",
191192
"@lit/localize": "^0.10.0",
192193
"@lit/react": "^1.0.0 || 1.0.0-pre.0",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<style>
2+
body { font-family: sans-serif; }
3+
</style>
4+
5+
<script type="module" src="./shared-counter.js"></script>
6+
7+
<body>
8+
<shared-counter><h2>Instance 1</h2></shared-counter>
9+
<shared-counter><h2>Instance 2</h2></shared-counter>
10+
</body>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "/samples/base.json",
3+
"title": "Signals",
4+
"description": "An example of using Signals with Lit with the @lit-labs/signals package.",
5+
"section": "Managing Data",
6+
"files": {
7+
"shared-counter.ts": {},
8+
"index.html": {}
9+
}
10+
}

0 commit comments

Comments
 (0)