@amitgandhinz/liquidglass-react
v0.0.7
Published
A modern, highly aesthetically pleasing React UI component library featuring a "Liquid Glass" design system. This library focuses on transparency, blur effects, and depth to create a premium, native-feeling user interface.
Readme
Liquid Glass React UI
A modern, highly aesthetically pleasing React UI component library featuring a "Liquid Glass" design system. This library focuses on transparency, blur effects, and depth to create a premium, native-feeling user interface.
✨ Design Philosophy
The "Liquid Glass" aesthetic is defined by:
- High Blur & Transparency: Backgrounds use heavy
backdrop-filter: blur(40px)withsaturate(190%)for a vibrant, frosted glass look. - Depth: Multi-layered shadows and subtle white borders create a 3D sense of hierarchy.
- Fluidity: Components like the
SheetandGrowluse smooth, spring-like animations. - Responsiveness: Layouts adapt intelligently, such as the
Sheettransforming from a bottom-sheet on mobile to a centered modal on desktop.
🚀 Getting Started
Prerequisites
- Node.js (v16+)
- npm or yarn
Installation
Clone the repository and install dependencies:
git clone https://github.com/drawbuildplay/liquidglass-react.git
cd liquidglass-react
npm installRunning the Environment
We use Storybook for developing and showcasing components in isolation.
npm run storybookThis will open the Storybook interface at http://localhost:6006.
🧩 Components
The library includes a suite of reusable "glass" components:
Showcase: A full mobile app simulation demonstrating all components working together.Sheet: A versatile surface that acts as a bottom-sheet on mobile and a modal on desktop.TabBar: A floating, glass-effect navigation bar with active state effects.Toolbar: A sticky header component with support for titles and action buttons.PopUpButtonMenu: A context menu with glass styling and checkmark support.Alert: A premium modal dialog for confirmations and warnings.Growl: A slide-down notification for non-blocking feedback.Button: Pill-shaped buttons with various variants (Primary, Secondary, Ghost, Destructive).Overlay: A standard modal backdrop utility.
📱 Showcase Demo
Check out the Live Demo to see the components in action within a simulated iPhone 16 Pro frame.
