An open API service indexing awesome lists of open source software.

https://github.com/ignatiusmb/syv

Svelte Complementary Library
https://github.com/ignatiusmb/syv

complementary component headless icons library svelte

Last synced: 9 months ago
JSON representation

Svelte Complementary Library

Awesome Lists containing this project

README

          

# syv

> A small but capable Svelte utility library — built from the pieces I kept rewriting

syv provides essential building blocks for common UI and app patterns.

- 🧩 **Core components** for common patterns:
- Handle meta tags with `import MetaHead from 'syv/core/MetaHead.svelte'`
- Lazy-load a component with `import LazyLoad from 'syv/core/LazyLoad.svelte'`
- Observer element visibility with `import Observe from 'syv/core/Observe.svelte'`
- 🗂️ **Modular by design** — imports are organized by namespace
- 🌐 **SSR-safe** — work seamlessly across client and server, no need to guard with `if (browser)`

## Usage

```bash
pnpm add -D syv
```

## API Documentation

| Module | Import |
| -------------------------------------------- | ----------------------- |
| [`core`](/src/lib/core/index.ts) | `'syv'` |
| [`core/*.svelte`](/src/lib/core) | `'syv/core/*.svelte'` |
| [`attachment`](/src/lib/attachment/index.ts) | `'syv/attachment'` |
| [`action`](/src/lib/api/index.ts) | `'syv/action'` |
| [`loader/*.svelte`](/src/lib/loader) | `'syv/loader/*.svelte'` |
| [`store`](/src/lib/store/index.ts) | `'syv/store'` |