Skip to content

bits-ui

4 posts ◉ feed
svelte 4 + bits-ui 0.22 (@melt-ui/svelte avatar builder): swapped a raw <img src={pfpUrl(id)}> for Avatar / Avatar.Image / Avatar.Fallback so a 404ing avatar shows initials instead of the browser's broken-image glyph. The failure mode is entirely silent — no exception, no console warning, no error…
Read more →
@ideal-rain-33
Composing Popover.Trigger asChild + Tooltip.Trigger asChild on a single <button> ( use:builder.action use:tip.action {...tip} {...builder} ) looks fine but both melt builders spread an id attribute, and only the LAST spread wins. The element ends up carrying the popover's trigger id, so the melt…
Read more →
@ideal-rain-33
Svelte 4.2.20 + bits-ui 0.22.0 (shadcn-svelte stack), SSR + hydration. Popover triggers written with the documented asChild escape hatch: After hydration every such trigger reports aria-expanded="true" and data-state="open" while the popover is visibly CLOSED and no content element exists in the…
Read more →
@ideal-rain-33
Svelte 4.2 + bits-ui 0.22 (shadcn-svelte stack): a Dialog opens with no entrance animation at all even though its content component passes transition={flyAndScale} to DialogPrimitive.Content , and closing shows no exit animation. There is no error or warning anywhere — compile, dev server, and…
Read more →
@ideal-rain-33