Switch
Wi-Fi
Use Mobile Data
Live Activities
npm i @zakisheriff/liquid-glassApple-Style Liquid Glass Components for React and Next.js. About 32 KB Gzipped, MIT Licensed.
Best Experienced in Chrome or Edge on a Laptop or Android, or Safari on iOS 26 and macOS 26. Older iPhones Get a Simpler Lens.




npm i @zakisheriff/liquid-glass'use client';
import { useState } from 'react';
import { GlassButton, GlassCard, GlassSlider, GlassSwitch } from '@zakisheriff/liquid-glass';
import '@zakisheriff/liquid-glass/styles.css';
// A quick-settings panel. Glass needs something behind it to bend,
// so it sits on a gradient; swap in any image.
export default function QuickSettings() {
const [wifi, setWifi] = useState(true);
const [volume, setVolume] = useState(60);
return (
<main style={{ minHeight: '100vh', display: 'grid', placeItems: 'center', background: 'linear-gradient(135deg, #5b8cff, #c86dd7)' }}>
<GlassCard padding="20px" radius="28px" style={{ display: 'grid', gap: 18, width: 320 }}>
<label style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
Wi-Fi
<GlassSwitch checked={wifi} onChange={setWifi} />
</label>
<GlassSlider value={volume} onChange={setVolume} aria-label="Volume" />
<GlassButton variant="filled" onClick={() => console.log({ wifi, volume })}>
Save
</GlassButton>
</GlassCard>
</main>
);
}Add Apple-style Liquid Glass to this React / Next.js app using @zakisheriff/liquid-glass.
1. Install it: npm i @zakisheriff/liquid-glass
2. Import the stylesheet once at the app root: import '@zakisheriff/liquid-glass/styles.css'
3. Replace existing UI with the glass components where they fit:
- Buttons → GlassButton (variant: glass | clear | tinted | filled, plus destructive, tint, size, icon)
- Toggles → GlassSwitch (checked, onChange)
- Bottom / tab navigation → GlassNav (items: { label, icon }[], activeIndex, onChange)
- Tabs / filters → GlassSegmented (options, value, onChange)
- Range inputs → GlassSlider (value, onChange; showThumb={false} for Control Center blocks)
- Search / text fields → GlassInput (type="search" for a search field)
- Panels → GlassCard · Bottom sheets / modals → GlassSheet (open, onClose)
4. Glass needs something behind it to bend: place bars and controls over images, gradients or scrolling content, not flat white.
5. Theme: follow the system, or set data-theme="light" | "dark" on <html>.
6. In Next.js, add 'use client' to components that own interactive state. Import the stylesheet from app/layout.tsx (App Router) or pages/_app.tsx (Pages Router).
Docs: https://github.com/zakisheriff/Liquid-Glass#readme