New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@hashintel/refractive

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hashintel/refractive

HASH Refractive Filter Components

latest
Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
852
926.51%
Maintainers
3
Weekly downloads
 
Created
Source

@hashintel/refractive

Install

npm install @hashintel/refractive

Usage

refractive is a higher-order component (HOC) that can wrap any React component to apply refractive glass effects. The refraction prop allows you to customize the appearance of the effect.

The HOC uses SVG filters to create the refractive effect, which is applied via the backdrop-filter CSS property.

Caution: refractive will override style.backdropFilter and style.borderRadius of the wrapped component.

Example

import { refractive } from "@hashintel/refractive";

<refractive.div
  className="your-class-name"
  refraction={{
    radius: 12,
    blur: 4,
    bezelWidth: 10,
  }}
>

Custom component

import { refractive } from "@hashintel/refractive";

const RefractiveButton = refractive(Button);

<RefractiveButton
  onClick={() => {}} // your button props
  refraction={{
    radius: 8,
    blur: 2,
    bezelWidth: 8,
  }}
>
  Click Me
</RefractiveButton>

FAQs

Package last updated on 25 Mar 2026

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