javierbyte / react-blur

React component to blur image backgrounds using canvas.
https://javier.xyz/react-blur/
BSD 3-Clause "New" or "Revised" License
460 stars 48 forks source link
blur design-tool frontend javascript react

React Blur

React component for creating blurred backgrounds using canvas.

react-blur

Installation

npm install react-blur --save

Usage

import Blur from "react-blur";

Example

<Blur img="/directory/img.jpg" blurRadius={5} enableStyles>
  The content.
</Blur>

For a complete example see the code in the demo branch.

Props

Contributing

Thanks to Quasimodo for the original stack blur algorithm.