Search
Search components and blocks
Pixel Burst
A click spark. Wrap any area and every click sprays a ring of square pixels from the pointer: they fly outward with a spring-like ease, shrink and fade, then unmount. Spread and distance are jittered per click, and nothing fires under reduced motion.
Click anywhere
Install
$ pnpm dlx shadcn@latest add @ditherui/pixel-burst
Props
PropTypeDefault
childrenReact.ReactNode—countnumber10distancenumber44durationnumber650animatedbooleantrueclassName / ...div propsReact.ComponentProps<"div">—When to use the pixel burst
Use it as a click spark for buttons and success states. Wrap any area and every click sprays a ring of square pixels.
Open the CLI tab on any preview above for the exact shadcn command. The source is copied into your project, so you can edit it like any other file.