Code Snippets Svelte

Short texts Svelte 🧑‍💻 Code snippets Svelte ✍️ Reading lists Svelte 👀

Bookshelf component built with Svelte, using data from OpenLibrary

Bookshelf Currently reading On my coffee table or bedside table. You can find all the books I remember reading on my bookshelf below, which pulls live data from the OpenLibrary API. Read about why I made this library here. {#if nowReading != null} {#each nowReading as book} {book.title} by {book.author} View on OpenLibrary {/each} {:else} […]

Timer in svelte

setActive(!active)}> {!active ? ‘start’ : ‘stop’} {m.toString().padStart(2,0)}:{s.toString().padStart(2,0)}