@sv/loaders

0.0.5 svelte-logo Published 10 days ago

A collection of loaders for Svelte projects

Svelte Dot Matrix Loaders

Views GitHub Sponsors MIT License jsrepo downloads

A growing collection of dot-matrix loaders for Svelte. sv-matrix gives you reusable square matrix animations built on top of a shared DotMatrix foundation, with registry installs, live previews, and component docs.

Installation

Each loader depends on the shared dot-matrix foundation.

1. Install the base dot-matrix component

This installs the shared DotMatrix component, hooks, helpers, and styles.

npx shadcn-svelte@latest add https://sv-matrix.vercel.app/r/dot-matrix.json

2. Install any matrix loader

Pick any loader you want from the registry.

npx shadcn-svelte@latest add https://sv-matrix.vercel.app/r/square-1.json

Examples:

npx shadcn-svelte@latest add https://sv-matrix.vercel.app/r/square-4.json
npx shadcn-svelte@latest add https://sv-matrix.vercel.app/r/square-8.json

Usage

Example with square-1:

<script lang="ts">
	import Square1 from '$lib/components/loaders/square-1.svelte';
</script>
 
<Square1 size={37} dotSize={5} speed={1.1} color="#f59e0b" />

Credits

This project is inspired from the Original Dot Matrix Loaders by Shawn Original Dot Matrix: Live Preview

Goal

The goal of this project is to bring similar dot matrix loaders to the Svelte ecosystem.

Support

GitHub Sponsor: https://github.com/sponsors/SikandarJODD

License

This project is licensed under the MIT License

Report Registry
or
Download
svelteloaderscomponentshookscss
Items 21
Dependencies 2
Weekly Downloads
0
Authors
  • Sikandar JODD