liquid-glass-cli
A CLI that copies an Apple iOS 26 style Liquid Glass component into your React project. The generated file is yours: no runtime package to install, no version to keep in step.
Installation
Run the CLI from your project root. It detects your framework, resolves the components directory and writes the file.
npx liquid-glass-cli add liquid-glassWrites components/liquid-glass.tsx. Re-running overwrites it, so keep local edits in a wrapper.
Usage
Import it and wrap anything. Every prop is optional — the defaults are the iOS 26 material.
1import { LiquidGlass } from "@/components/liquid-glass"23export function Sheet() {4 return (5 <LiquidGlass6 tint="rgba(17, 21, 27, 0.4)"7 cornerRadius={24}8 cornerSmoothing={60}9 refraction={100}10 frost={8}11 >12 <div className="p-8">13 <h3>Liquid Glass</h3>14 <p>Own the file, edit the file.</p>15 </div>16 </LiquidGlass>17 )18}
Props
Eleven props, plus children. Tune them live in the playground.
Recipes
Pill button
Fully rounded, light frost, bright rim.
cornerRadius={999}
frost={4}
lightIntensity={100}Sheet over photo
Heavy frost so text stays legible on busy imagery.
frost={20}
refraction={40}
depth={40}Water droplet
Maximum bend and channel split, almost no blur.
refraction={100}
dispersion={100}
frost={0}Apple squircle
Continuous corners, a thin bevel and a tight rim — the iOS 26 panel.
cornerRadius={28}
cornerSmoothing={100}
depth={45}
splay={25}Browser support
The refraction layer relies on an SVG displacement filter inside backdrop-filter. Firefox and Safari drop backdrop-filter: url() as invalid, which leaves that layer inert and lets the frost, tint and stroke below carry the effect on their own.