/syv

Svelte Complementary Library

Primary LanguageSvelteMIT LicenseMIT

Syv Total npm downloads · Published npm version Monthly npm downloads License Made with Svelte

The Svelte Complementary Library, a multipurpose library for working with Svelte.

  • Provides most of the essential components that are usually rewritten in a new project
    • Need to lazy-load a component? import LazyLoad from 'syv/core/LazyLoad.svelte';
    • Need to see if an element is in view? import Observe from 'syv/core/Observe.svelte';
  • Prepackaged customizable set of icons from various sources, import from syv/icons
  • Built-in loaders that are ready-to-use anywhere transitions are needed, import from syv/loader
  • Imports are modularized into their own namespaces and provides intuitive API for a nice usage with Svelte
  • All modules works for both client-side and server-side, no need to short-circuit or guard your code with if (browser)

Usage

pnpm add -D syv

API Documentation

Module Import
core 'syv'
action 'syv/action'
icons 'syv/icons'
loader 'syv/loader'
store 'syv/store'