matia ππ·@joyofcode.xyzDo you prefer option A, option B, or having both A+B options for creating annotations in Svelte?10/9/26, 2:00 pmΒ·0 repostsΒ·3 likes
Scott Wu@scottwu.ca11 SeptYou can probably do both. The latter is better to guarantee consistent output.111
Scott Wu@scottwu.ca11 SeptIf it is string only, I wouldn't event allow a children and only pass a value prop
Antoine@antleth.fr10 SeptA is more versatile without sacrificing DX, easy pick imo But if you can, both are good!3
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