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

react-ios-liquid-glass

v1.0.3

Published

react-ios-liquid-glass is a lightweight React + TypeScript library that helps you easily replicate the elegant iOS liquid glass effect (also known as glassmorphism). With built‑in support for blur, transparency, and smooth transitions, this package allows

Readme

React Liquid Glass Component

A lightweight React component that applies a liquid glass effect to its children, providing a frosted glass aesthetic with customizable properties.

React iOS Liquid Glass Editor

Live Editor

Try the component interactively: https://react-ios-liquid-glass-doc-2ej2.vercel.app

Installation

You can install the react-liquid-glass package using one of the following package managers:

npm

npm install react-ios-liquid-glass

Yarn

yarn add react-ios-liquid-glass

pnpm

pnpm add react-ios-liquid-glass

Usage

Import the LiquidGlass component and its CSS file, then wrap your content with the component.

import "react-ios-liquid-glass/dist/index.css";
import { LiquidGlass } from "react-ios-liquid-glass";

function App() {
  return (
    <LiquidGlass>
      <div>Your content here</div>
    </LiquidGlass>
  );
}

Props

The LiquidGlass component accepts the following props:

| Prop | Type | Description | Default Value | | -------------- | --------------------- | ------------------------------------------------------- | ------------- | | children | React.ReactNode | The content to be wrapped with the liquid glass effect. | Required | | width | string | Sets the width of the component. | "auto" | | height | string | Sets the height of the component. | "auto" | | borderRadius | string | Defines the border radius of the liquid glass effect. | "20px" | | blur | string | Controls the blur intensity of the glass effect. | "10px" | | brightness | string | Adjusts the brightness of the glass effect. | "1.1" | | padding | string | Sets the padding inside the component. | "10px" | | style | React.CSSProperties | Additional CSS styles to apply to the component. | undefined |

Prop Details

  • children: The content you want to apply the liquid glass effect to. This is a required prop.
  • width and height: Define the dimensions of the component. Accepts any valid CSS length unit (e.g., "100px", "50%", "auto").
  • borderRadius: Controls the corner radius of the glass effect. Accepts valid CSS border-radius values (e.g., "10px", "50%").
  • blur: Sets the blur effect intensity. Higher values create a more frosted appearance (e.g., "5px", "20px").
  • brightness: Adjusts the brightness of the effect. Values greater than 1 increase brightness, while values less than 1 decrease it (e.g., "1.2", "0.8").
  • padding: Adds inner spacing around the children. Accepts valid CSS padding values (e.g., "15px", "1rem").
  • style: Allows custom CSS properties to be applied to the component, overriding default styles where applicable.

Example

import "react-ios-liquid-glass/dist/index.css";
import { LiquidGlass } from "react-ios-liquid-glass";

function App() {
  return (
    <LiquidGlass
      width="300px"
      height="200px"
      borderRadius="15px"
      blur="12px"
      brightness="1.3"
      padding="20px">
      <h1>Hello, Liquid Glass!</h1>
      <p>This is a frosted glass effect.</p>
    </LiquidGlass>
  );
}

Notes

  • Ensure the CSS file (react-ios-liquid-glass/dist/index.css) is imported to apply the liquid glass styling.
  • The component inherits all standard HTML div attributes, as it extends React.HTMLAttributes<HTMLDivElement>.
  • For optimal visual results, use a semi-transparent background or place the component over a visually rich background to enhance the frosted glass effect.

License

This project is licensed under the MIT License.