/react-blur

React component for blurred backgrounds.

Primary LanguageJavaScript

React Blur

React component for creating blurred backgrounds using canvas.

Live demo

react-blur

Installation

npm install react-blur --save

Usage

var Blur = require('react-blur');

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

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

Props.

  • img: The image path.
  • blurRadius: The size of the blur radius.

Thanks to Quasimodo for the original stack blur algorithm.