Like Burst
FreeSampleA pressed-state toggle with a springy icon, particle burst and rolling count. The celebration is decorative; the state change is not.
- buttons
- toggle
- social
Customize
These controls show a few ways to adapt it. The source is fully editable.
Install
Not published yetnpx shadcn@latest add @uicoolkit/like-burstInstall commands go live when this item ships to the registry.
Dependencies
- motion
Use with an agent
Copy a prompt with this component, your current preview settings and links to its docs.
Add the UICoolKit "Like Burst" component (like-burst) to this project. Docs: https://uicoolkit.com/components/like-burst Agent docs: https://uicoolkit.com/components/like-burst.md Install: npx shadcn@latest add @uicoolkit/like-burst Preview settings to match: accent Ember, radius 12px, motion on. Use the documented props and className hooks rather than editing internals, and wire it to this app's real state. (Note: this is a sample item from the UICoolKit website shell and is not published yet.)
<LikeBurst
pressed={liked}
onPressedChange={setLiked}
count={128}
/>| Prop | Type | Default |
|---|---|---|
pressedControlled pressed state. | boolean | — |
onPressedChangeCalled when the user toggles. | (pressed: boolean) => void | — |
countOptional count, animated as digits roll. | number | — |
particlesParticle count, or false for none. | number | false | 8 |
classNameMerged onto the root after defaults, so consumer styles win. | string | — |
motionDisable animation or tune duration, easing and spring values. Reduced motion is honored by default. | boolean | MotionOptions | true |
Every part accepts className, and consumer classes are merged last so they win. Control state from your own data, replace any content, and tune or disable motion.
<LikeBurst
className="rounded-none border-2 border-black bg-yellow-300 font-mono"
motion={{ duration: 0.2 }}
/>- Uses aria-pressed so the toggle state is announced.
- Particles are aria-hidden and skipped with reduced motion.
Inspired by
Reference to be selected · Community inspiration
Sample credit. Real “Inspired by” links are chosen with the starter set; this toggle will be an independent UICoolKit implementation.
Free items are MIT licensed. Pro items are licensed per purchase.