@svelte-put
Packages
@svelte-put
includes several packages with self-manged release cycles, listed below. Check out their corresponding documentation for more details.
ID | Desrciption | Version | Status |
---|---|---|---|
async-stack | type-safe and headless builder for async component stack | new | |
avatar | component & utilities for building avatars | stable | |
clickoutside | event for clicking outside node | stable | |
cloudflare-turnstile | action for rendering Cloudflare turnstile into HTML node | new | |
copy | action & utilities to copy text to clipboard | stable | |
dragscroll | action to add "drag-to-scroll" behavior | stable | |
inline-svg | solution for inlining SVGs in svelte land | stable | |
intersect | svelte action that wraps for IntersectionObserver | stable | |
lockscroll | locking scroll and hide scrollbar within an HTML element | stable | |
movable | move node on mousedown | stable | |
popover | Minimal and ssr-friendly enhancements to Popover API with idiomatic Svelte | new | |
preaction | allow Svelte action to spread SSR-friendly attriutes | beta | |
preprocess-auto-slug | svelte preprocessor to add id attribute and anchor tag | stable | |
preprocess-external-link | svelte preprocessor to add appropriate attributes to anchor tags for external links | stable | |
qr | render QR as img or svg, optionally with logo | stable | |
resize | Svelte action wrapper for ResizeObserver | stable | |
shortcut | add keyboard shortcuts to node | stable | |
swipeable | set up quick swipe gesture action on element | new | |
toc | action and utilities for building table of contents | stable |
Inspiration & Acknowledgement
There is already a great pool of svelte actions collected by Shawn and other contributors that you should check out. There might be some duplications here and there. However:
- Shawn's project aims to be a source for RFCs into Svelte; I believe stuff I am putting here should stay in user land.
- I prefer having separate packages for their dedicated purposes (instead of one package that exports everything).
- I want to incrementally include more than just actions int his collection.
For those reasons, a monorepo seems like a good fit, hence this project. To contribute or support the project, head over to the contributing page. Happy coding! 👨💻