https://github.com/vasucp1207/sveltronics
Svelte utility functions for your project
https://github.com/vasucp1207/sveltronics
svelte sveltekit typescript
Last synced: about 1 year ago
JSON representation
Svelte utility functions for your project
- Host: GitHub
- URL: https://github.com/vasucp1207/sveltronics
- Owner: vasucp1207
- License: mit
- Created: 2023-03-14T05:20:46.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-12-20T14:41:32.000Z (over 1 year ago)
- Last Synced: 2025-03-31T12:04:55.673Z (over 1 year ago)
- Topics: svelte, sveltekit, typescript
- Language: TypeScript
- Homepage: https://sveltronics.netlify.app/
- Size: 1.18 MB
- Stars: 87
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README

Sveltronics
Svelte utility functions for your project
# 📦Installation
```
npm i sveltronics
```
# 🐰Usage
```svelte
import { resizeable, elementSize } from "sveltronics";
import { onMount } from "svelte";
let myEle;
let { height, width } = {};
onMount(() => {
({ height, width } = elementSize(myEle));
})
Resizeable
Height: {$height}
Width: {$width}
```