A collection of custom attachments for Svelte.
Note
Since attachments are a new feature in Svelte, this project is in an early testing phase to experiment with their implementation. As a result, breaking changes are very likely before the first stable release.
If you find any issues or bugs, please report them so the project can be improved.
# via pnpm
pnpm add @sveltek/attachments
# via npm
npm install @sveltek/attachments
Required:
svelte
:>=5.29.0
- clickOutside → Triggers a callback when clicking outside the target element.
- keyboard → Triggers a callback when a specified keyboard event occurs.
- preventScroll → Prevents scrolling on the target element.
Developed in 🇭🇷 Croatia, © Sveltek.
Released under the MIT license.