Skip to content

Commit

Permalink
[docs] Add data/signals docs (#1372)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinfagnani authored Oct 8, 2024
1 parent 0555ca6 commit 3dc7a65
Show file tree
Hide file tree
Showing 10 changed files with 807 additions and 77 deletions.
169 changes: 99 additions & 70 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/lit-dev-content/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@
"@lit-labs/motion": "^1.0.1",
"@lit-labs/react": "^1.0.8",
"@lit-labs/task": "^3.0.2",
"@lit-labs/signals": "^0.1.1",
"@lit/context": "^1.1.0",
"@lit/localize": "^0.10.0",
"@lit/react": "^1.0.0 || 1.0.0-pre.0",
Expand Down
10 changes: 10 additions & 0 deletions packages/lit-dev-content/samples/examples/signals/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<style>
body { font-family: sans-serif; }
</style>

<script type="module" src="./shared-counter.js"></script>

<body>
<shared-counter><h2>Instance 1</h2></shared-counter>
<shared-counter><h2>Instance 2</h2></shared-counter>
</body>
10 changes: 10 additions & 0 deletions packages/lit-dev-content/samples/examples/signals/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "/samples/base.json",
"title": "Signals",
"description": "An example of using Signals with Lit with the @lit-labs/signals package.",
"section": "Managing Data",
"files": {
"shared-counter.ts": {},
"index.html": {}
}
}
Loading

0 comments on commit 3dc7a65

Please sign in to comment.