Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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}

```