PreSveltation

Stores

There are a couple of stores that you can access. These stores use the svelte-local-storage-store package to also write to local storage, but you can interact with them in the same way as you would with any Svelte store.


SVELTE

Slides

The slides store allows you to access the slides you define in the root layout file, as described in the Getting Started page.


SVELTE

Current Slide

currSlide holds the index (a number value) representing the current active slide. You can use it in combination with slides to get information about the current slide.


SVELTE

Max Steps

maxSteps can be used to set the number of steps you want to have per slide in the onMount function.


SVELTE

Current Step

The currStep store can be used to check which step you are on in a slide. This store gets reset back to 0 when entering a new slide. You can for example use the store to do different things at different steps in your presentation.


SVELTE