matia ππ·@joyofcode.xyz10 SeptDo you prefer option A, option B, or having both A+B options for creating annotations in Svelte?43
ecstrema.bsky.social@ecstrema.bsky.social10 SeptIt does, however, prevent you from putting it on something other than a span... Will have to think.1
ecstrema.bsky.social@ecstrema.bsky.social11 SeptWhat about a solution like bit ui's child snippet?bits-ui.comBits UIHeadless components for Svelte - flexible, unstyled, and accessible primitives that provide the foundation for building your own high-quality component library.1
matia ππ·@joyofcode.xyzIn this case we can just use a simple prop13/9/26, 10:30 amΒ·0 repostsΒ·0 likes
ecstrema.bsky.social@ecstrema.bsky.social14 SeptYes but then you would need to add all other things like bindings, types that understand the as=..., as you may want to add other attributes to that element, etc.11
matia ππ·@joyofcode.xyz16 SeptI added support for both π«‘ github.com/matiadev/sve...github.comGitHub - matiadev/svelte-annotate: γ½οΈ Hand-drawn annotations for Svelteγ½οΈ Hand-drawn annotations for Svelte. Contribute to matiadev/svelte-annotate development by creating an account on GitHub.11