Projetos
Ver no GitHub
ankurrsinghal/svelte-legos
Sobre
[NÃO É MAIS MANTIDO] Um framework de utilitários para Svelte 💡 Status atual: 87 utilitários.
Desenvolvimento web e de aplicativosO que você pode fazer
- 🎪 Interactive docs & demos
- ⚡ Fully tree shakeable: Only take what you want, [bundle size]
- 🦾 Type Strong: Written in TypeScript, with TS Docs
- 🔋 SSR Friendly
Crescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- 0
- em 15 dias
- -2
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
OriginalSvelte Legos
Collection of essential Svelte Composition Utilities
🚀 Features
- 🎪 Interactive docs & demos
- ⚡ Fully tree shakeable: Only take what you want, [bundle size]
- 🦾 Type Strong: Written in TypeScript, with TS Docs
- 🔋 SSR Friendly
- 🌎 No bundler required: Usable via CDN
- 🔩 Flexible: Configurable event filters and targets
🦄 Usage
<script lang="ts">
import { counterStore } from "svelte-legos";
const { counter, inc, dec, set, reset } = counterStore();
</script>
<button on:click={() => inc()}>Increment</button>
{counter}
<button on:click={() => dec()}>Decrement</button>
<script lang="ts">
import { clickOutsideAction } from "svelte-legos";
let hidden = false;
function handleClickOutside() {
hidden = !hidden;
}
</script>
<div class="modal" use:clickOutsideAction on:clickoutside={handleClickOutside} />
Refer to functions list or documentations for more details.
📦 Install
npm i svelte-legos
Local setup
npm run start:dev
🌸 Thanks
This project is heavily inspired by the following awesome projects.
License
Explore projetos relacionados
Carregando…