Actions
Icon Swap
Swaps one icon for another with a blur, scale and fade, like copy → check.
npx shadcn-svelte@latest add http://localhost:5173/r/icon-swap.json Two states
The button presses to 0.97. The outgoing icon shrinks, blurs and fades while the incoming one grows in — 150ms ease-out, so it answers the click immediately; a 2px blur blends the two mid-swap so it reads as one icon turning into the other. Click quickly and it reverses from where it is.
light
dark
Several states, with text
Any number of items; the box is as big as the largest icon, so the label beside it never moves.
light
dark