Svelte SnippetsSnippets for Svelte and Svelte-Kit (using TypeScript) SnippetsSVELTE KITskl - SvelteKit Page Server Load
skpl - SvelteKit Page Server Load with explicit typing for PageLoad
skpsl - SvelteKit Page Server Load with explicit typing for PageServerLoad
skll - SvelteKit Page Server Load with explicit typing for LayoutServerLoad and context
sklsl - SvelteKit Page Server Load with explicit typing for LayoutServerLoad and context
ska - SvelteKit Page Actions
skat - SvelteKit Page Actions with explicit typing
SVELTEsvts - Svelte Typescript script tag
svdisp - Svelte event dispatcher
svdispt - Svelte event dispatcher with type annotations
svhead - Svelte head tag
svfe - Svelte for each
svfee - Svelte for each
svif - Svelte if
svife - Svelte if else
svawait - Svelte await
svkey - Svelte key
NoteThe snippets include "$1", "$2"... which are placeholders for the cursor position. You can use the tab key to jump between them. These snippets do not include required imports. You will need to add them yourself. LicenseMIT |