@sveltek/attachments

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.


Installation

# via pnpm
pnpm add @sveltek/attachments
# via npm
npm install @sveltek/attachments

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.

Community

Feel free to ask questions or share new ideas.

Use the official discussions to get involved.

License

Developed in 🇭🇷 Croatia, © Sveltek.

Released under the MIT license.

Top categories

Loading Svelte Themes