Socket
Book a DemoInstallSign in
Socket

@kawarp/react

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kawarp/react

React component for Kawarp fluid animated backgrounds

Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
2
-75%
Maintainers
1
Weekly downloads
 
Created
Source

@kawarp/react

React component for Kawarp fluid animated backgrounds.

Installation

npm install @kawarp/react

Usage

import { Kawarp } from '@kawarp/react';

function App() {
  return (
    <Kawarp
      src="/album-art.jpg"
      style={{ width: '100%', height: '100vh' }}
    />
  );
}

With Hook

import { Kawarp, useKawarp } from '@kawarp/react';

function App() {
  const { ref, loadImage } = useKawarp();

  return (
    <>
      <Kawarp ref={ref} style={{ width: '100%', height: '100vh' }} />
      <button onClick={() => loadImage('/new-image.jpg')}>
        Change Image
      </button>
    </>
  );
}

Props

PropTypeDefaultDescription
srcstring-Image URL to load
warpIntensitynumber1.0Warp effect strength (0-1)
blurPassesnumber8Kawase blur passes (1-40)
animationSpeednumber1.0Animation speed multiplier
transitionDurationnumber1000Crossfade duration in ms
saturationnumber1.5Color saturation multiplier
autoPlaybooleantrueAuto-start animation
onLoadfunction-Callback when image loads
onErrorfunction-Callback on error

License

AGPL-3.0

Built by Better Lyrics

Keywords

react

FAQs

Package last updated on 28 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts