npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

anam-react-liquid-glass

v1.0.0

Published

iOS 26-inspired liquid glass components for React — cursor-reactive shine, 3D tilt, specular highlights, and rim lighting.

Readme

react-liquid-glass

iOS 26-inspired liquid glass components for React. Zero dependencies beyond React — no Tailwind, no CSS imports, no setup.

Features:

  • Cursor-reactive specular highlights with gaussian falloff
  • Smooth 3D perspective tilt
  • Animated conic rim lighting that follows your cursor
  • Inner refraction glow (caustic illusion) on the Pill variant
  • Chromatic prismatic tint at corners
  • Top-edge highlight simulating light catching glass
  • Full keyboard & screen-reader accessibility on interactive elements
  • TypeScript-first with exported prop interfaces

Install

npm install anam-react-liquid-glass

Components

<LiquidGlassCard />

Frosted white glass (55% opacity) — ideal for cards, panels, modals.

import { LiquidGlassCard } from 'anam-react-liquid-glass'

<LiquidGlassCard style={{ padding: '32px' }} borderRadius="28px">
  <h2>Hello</h2>
  <p>Content sits on frosted glass.</p>
</LiquidGlassCard>

| Prop | Type | Default | Description | |------|------|---------|-------------| | children | ReactNode | — | Content inside the glass | | className | string | — | Optional CSS class | | style | CSSProperties | — | Inline styles merged onto the container | | tiltMax | number | 2.5 | Max 3D tilt in degrees | | shineSize | number | 280 | Specular highlight radius in px | | borderRadius | string | '24px' | CSS border-radius |

<LiquidGlassPill />

Ultra-translucent glass (~10% opacity) — ideal for buttons, nav bars, pills over vibrant backgrounds.

import { LiquidGlassPill } from 'anam-react-liquid-glass'

<LiquidGlassPill onClick={() => console.log('click')} style={{ padding: '14px 36px' }}>
  Get Started
</LiquidGlassPill>

| Prop | Type | Default | Description | |------|------|---------|-------------| | children | ReactNode | — | Content inside the glass | | className | string | — | Optional CSS class | | style | CSSProperties | — | Inline styles merged onto the container | | onClick | () => void | — | Makes it an accessible button | | tiltMax | number | 3 | Max 3D tilt in degrees | | shineSize | number | 200 | Specular highlight radius in px | | borderRadius | string | '9999px' | '9999px' for pill, '28px' for squircle |

Tips

  • Place over colorful or gradient backgrounds for the best effect — glass needs something to refract
  • The Card variant works great on light backgrounds; the Pill variant shines on dark/vibrant ones
  • Combine both: use a Card as a panel and Pills as buttons inside it
  • All styles are inline — no CSS files, no Tailwind, no class conflicts

Run the demo

git clone https://github.com/AnamGTR99/react-liquid-glass.git
cd react-liquid-glass
npm install
npm run demo

License

MIT