svelte-param-store
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

Svelte Param Store

A store helping you synchronize your app state and the URL!

Acknowledgments

The documentation for this package was heavily inspired by Svelte Sonner

Quick start

Install it:

npm i svelte-param-store
# or
yarn add svelte-param-store
# or
pnpm add svelte-param-store

Create a variable with:

<script>
  import { useParamStore } from 'svelte-param-store' 
  
  let name = useParamStore('name')
</script>

Bind it to an input:

<input type='text' bind:value={$name}>

Documentation

You can find a more detailed documentation as well as a full demo at Svelte Param Store

/svelte-param-store/

    Package Sidebar

    Install

    npm i svelte-param-store

    Weekly Downloads

    4

    Version

    0.0.4

    License

    MIT

    Unpacked Size

    7.49 kB

    Total Files

    7

    Last publish

    Collaborators

    • joakimedvardsen