A button that squashes on press, rebounds and releases a handful of bubbles that float up and pop. The scatter is deterministic.
Fizz Lemon, 12 pack
Sparkling water, 330 ml
npx shadcn@latest add https://hyperblur.dev/r/button-bubbles-pop.jsonWorks in any React project set up with the shadcn CLI. The file lands in components/hyperblur/button-bubbles-pop.tsx.
import { ButtonBubblesPop } from "@/components/hyperblur/button-bubbles-pop"
<ButtonBubblesPop count={9}>Add to cart</ButtonBubblesPop>| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | required | Button label. |
| variant | "solid" | "outline" | "ghost" | "solid" | Surface style. |
| accent | string | "#2f7bff" | Brand color used for fills, borders, rings and the focus outline. |
| size | "sm" | "md" | "lg" | "md" | Height, padding and font size preset. |
| count | number | 9 | Bubbles per press, from 0 to 24. |
| idle | boolean | false | Releases a burst every few seconds while the pointer is away. Useful for previews. |
| loading | boolean | false | Shows a spinner, sets aria-busy and ignores clicks while true. |
| disabled | boolean | false | Dims the button and removes it from interaction. |