Skip to content
Svelte Helpers
Language:en Author:AtomForge
svelte typescript helpers

Svelte helpers with @atom-forge/svelte-helpers

@atom-forge/svelte-helpers is a small TypeScript library for Svelte 5. It gives you consistent prop types, two type utilities for variant props, a few runtime helpers, and one component that adapts snippets to component-based APIs.

This book explains when each export is useful, how to combine them, and which limitations to know about.

Reading path

  1. Overview — scope, installation, and what is exported.
  2. Prop types — ClassProp, AnyProp, ChildrenProp, ChildrenPropOptional.
  3. Variant props — XOR, AtLeastOne, and variantMap.
  4. Runtime helpers — as, debounce, debounceAsync, and RenderSnippet.
  5. Recipes and pitfalls — a combined component and a list of limitations.