Svelte
- Category
- Frameworks and libraries
- Latest
- 5.57.3
- Released
- Oct 26, 2026
- Docs outline
- 15 sections
Official docs outline
svelte.dev- Svelte files and components
Component structure with script, markup and style, module scripts, and .svelte.js reactive modules.
- Runes and $state
What runes are, deep reactive state, $state.raw, classes with state, and sharing state across modules.
- $derived
Derived values, $derived.by, dependencies, and overriding derived state.
- $effect
Side effects, effect dependencies, teardown, $effect.pre, $effect.root, and when not to use effects.
- $props and $bindable
Declaring component props, defaults, rest props, and two-way binding with $bindable.
- Template markup and logic blocks
Basic markup, event attributes, {#if}, {#each} with keys, {#key} and {#await} blocks.
- Snippets and @render
Reusable markup with snippets, passing snippets as props, and replacing slots.
- Bindings and actions
bind: directives, use: actions, @attach attachments, and element bindings.
- Transitions and animations
transition:, in: and out:, animate: and the svelte/transition and svelte/motion modules.
- Styling
Scoped styles, :global, style: and class directives, and CSS custom properties.
- Special elements and error boundaries
svelte:boundary for error and pending handling, svelte:window, svelte:document, svelte:head and svelte:element.
- Stores and context
Writable and readable stores, store auto-subscription, and the context API.
- Lifecycle hooks
onMount, onDestroy, tick, and when component code runs.
- Imperative API and custom elements
mount, unmount, hydrate, render on the server, and compiling to custom elements.
- TypeScript and testing
Typing components and props, and testing with Vitest and component testing libraries.
Each section links to the official page. Titles and summaries by Extra Credit; the docs belong to their authors.
Versions and support
5 release lines| Line | Released | Latest | Support |
|---|---|---|---|
| 5 | Oct 19, 2024 | 5.57.3 | Supported |
| 4 | Jun 22, 2023 | 4.2.20 | Ended Oct 19, 2024 |
| 3 | Apr 21, 2019 | 3.59.2 | Ended Jun 22, 2023 |
| 2 | Apr 19, 2018 | 2.16.1 | Ended Apr 21, 2019 |
| 1 | Nov 29, 2016 | 1.64.1 | Ended Apr 19, 2018 |
Source: endoflife.date