~/talk

Ultimate Guide to Building Web Components with Svelte

Talkat Svelte Summit Spring 2025 · 2025-05-08..05-09· [web-platform]
links:none on file
slides:none on file

Svelte can compile components into standards-based custom elements by enabling customElement: true, but HTML attributes arrive as strings so numeric props break unless converted with props converters via svelte:options; dispatching uses host.dispatchEvent and lifecycle quirks require a wrapper that mounts the inner Svelte component. At Line the approach shares UI across products (150 million MAU). Building from scratch is required because SvelteKit package mode skips compilation, so an alpha toolkit exists — svelte-components template and a TypeScript rollup plugin that infers props — and experimental SSR via element renderer registry is prototype-grade, not production-ready.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 4:55Web component fundamentals
  3. 7:41Building vanilla components
  4. 11:33Svelte integration
  5. 14:26Advanced configuration
  6. 18:06Anatomy of Svelte components
  7. 20:22Current challenges
  8. 22:45Introducing svebcomponents
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.