Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leveluptuts/svelte-toy
A toy for svelte data stores
https://github.com/leveluptuts/svelte-toy
devtools svelte sveltejs sveltekit
Last synced: 2 months ago
JSON representation
A toy for svelte data stores
- Host: GitHub
- URL: https://github.com/leveluptuts/svelte-toy
- Owner: leveluptuts
- Created: 2021-06-28T22:31:57.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-15T19:26:31.000Z (over 1 year ago)
- Last Synced: 2024-06-27T07:33:10.671Z (7 months ago)
- Topics: devtools, svelte, sveltejs, sveltekit
- Language: Svelte
- Homepage:
- Size: 131 KB
- Stars: 92
- Watchers: 3
- Forks: 6
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Svelte Toy
## Demo
https://svelte.dev/repl/4566ac90a5ca42d6ade1c383b6f1ba66?version=3.43.1
`npm install @leveluptuts/svelte-toy`
```svelte
import { Toy } from '@leveluptuts/svelte-toy'
import { writable } from 'svelte/store';let example = writable({
name: 'John',
isActive: false
});Hi, my name is {$example.name}
{#if $example.isActive}
I'm active
{/if}```