🚀Ship faster with UI-Layouts Pro

Work With Us

Liquid Glass

Liquid glass is a glass-like material that is used to create a glass-like effect in a web application.

Installation

npx uilayouts@latest add liquid-glass

Props

PropTypeDefaultDescription
childrenReactNode-The content to be wrapped inside the liquid glass card
classNamestring''Additional CSS classes to apply to the card wrapper
draggablebooleanfalseEnable drag functionality with elastic bounce-back animation
expandablebooleanfalseEnable click-to-expand functionality with smooth size transitions
widthstring-Initial/collapsed width (e.g., '200px', '100%', 'auto')
heightstring-Initial/collapsed height (e.g., '120px', 'auto')
expandedWidthstring-Width when expanded (falls back to width or 'auto' if not provided)
expandedHeightstring-Height when expanded (falls back to height or 'auto' if not provided)
blurIntensitystring'sm'Backdrop blur strength: 'sm', 'md', 'lg', 'xl'
borderRadiusstring'32px'Custom border radius for the glass card
glowIntensitystring'sm'Outer glow effect: 'none', 'xs', 'sm', 'md', 'lg', 'xl', '2xl'
shadowIntensitystring'md'Inner shadow depth: 'none', 'xs', 'sm', 'md', 'lg', 'xl', '2xl'
...propsobject-Any additional props are passed through to the root element

Example

Weather

16:00+18°
17:00+18°
18:00+16°
19:00+14°
20:00+15°
21:00+14°
+18°C
Cloudy +18°/+5°
17:32
Sun, November 19
Tue, 7 Sep
+18°/+4°
Wed, 8 Sep
+20°/+6°
Thu, 9 Sep
+17°/+3°
Fri, 10 Sep
+22°/+10°
Sat, 11 Sep
+16°/+5°

Mobile Icons

Rotation Lock
Notifications
Brightness
Mute Volume
FocusFocus Mode
Flashlight
Timer
Camera
Record Screen

Notification

icon
UI-Layouts
New components are available for you
Liquid-Glass
12:34
og
icon
New components are available for you
12:34