JavaScript BSD-3-Clause

react-blur

React component to blur image backgrounds using canvas.

J

javierbyte

Dernière activité 1 sept. 2026
javierbyte/react-blur

468

étoiles

49

forks

7

issues ouvertes

blurdesign-toolfrontendjavascriptreact

Ce README est souvent en anglais.

React component for creating blurred backgrounds using canvas.

react-blur

Installation

pnpm add react-blur

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

  • img: The image path.
  • blurRadius: Optional. The size of the blur radius.
  • enableStyles: Optional. Flag to include base styles inline, omit this to easily override.
  • shouldResize: Optional. If the canvas should re-render on resize? Defaults to true.
  • resizeInterval: Optional. How fast the canvas should re-render on resize? Defaults to 128ms.

Contributing

Thanks to Quasimodo for the original stack blur algorithm.

Projets similaires

React Native Blur component

TypeScriptreact-nativereact-native-blurreact-native-component
Mmargelo
3,9 k étoiles565

A modern React Native blur view component that provides native blur effects for both iOS and Android platforms. also adds progressive blur and liquidGlass

TypeScriptandroid-blurblur-effectblurview
Ssbaiahmed1
345 étoiles19

React components for the Konva 2d canvas library. Build interactive graphics, design editors, and whiteboards with JSX.

TypeScriptcanvascanvas-editordesign-editor
Kkonvajs
6,4 k étoiles294