Reference

XCODX · Reference

Svelte Reference

Reference pages for Svelte — syntax, parameters, return values and runnable examples.

All Svelte reference pages

This is the Svelte reference on XCODX. Each page documents one feature completely — the exact syntax, its parameters and return value, the gotchas that trip people up, and runnable examples you can edit right on the page.

The pages below are grouped so related topics stay together. Pick one to dive in, or run anything you find in the Svelte online compiler.

Frequently asked questions

What do these Svelte reference pages cover?
Each documents one API — its purpose, signature, and behavior — with a live editable Svelte playground.
Which version of Svelte do these target?
Current Svelte using its modern reactivity API. Version notes are called out where they matter.