Skip to main content

npm

Package metadata:

CDN

The CDN build is a single ES-module bundle. Use it as the script tag shown above or import it as an ESM URL in modern browsers.

CSS

If you use the CDN build or a bundler that doesn’t auto-import Svelte styles, include the stylesheet:
Or, from npm:

TypeScript

Types ship with the npm package. Import whatever you need: