Description
React Blur is a React component that creates a blurred background from an image, using a canvas to do the blur work. You pass it the image path and it draws a blurred copy behind your content, which is useful for hero sections, cards and other places that need a soft image backdrop. The blur strength is set with a radius prop. By default the canvas redraws when the window is resized, and you can turn that off or change how often it redraws. An option adds the base styles inline, and you can leave it off if you want to override the styles yourself. The README includes an installation step, a usage example and a demo branch in the repository. The blur is based on a stack blur algorithm, which the author credits to Quasimodo. The project is open source and hosted on GitHub.…
Highlights
- Blurred image backgrounds drawn on a canvas
- Adjustable blur radius
- Optional resize redraw with a set interval
- Base styles can be turned off for custom CSS
Ratings & Reviews
No ratings yet
Be the first to rate react-blur.
People also visit
react-blur FAQ
What does React Blur do?
It is a React component that shows a blurred version of an image as a background, drawn with a canvas.
How do I control the blur?
Set the blurRadius prop to change its size. The img prop takes the path to the image.
Does it update when the window resizes?
By default yes. The shouldResize prop turns redrawing on resize on or off, and resizeInterval sets how often it redraws, with a default of 128 ms.
Is it open source?
The code is public on GitHub, and the README includes an example in the demo branch.
What are the best react-blur alternatives?
Popular alternatives to react-blur include gatsby-background-image, react-slider and react-sidebar. See all react-blur alternatives


















