Browse components
Liquid Chrome
A slowly folding mirror-like chrome surface that ripples wherever the cursor moves or clicks. WebGL.
Liquid Chrome
Installation
npx shadcn@latest add @glint-ui/liquid-chromeFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glint-ui-seven.vercel.app/r/liquid-chrome.json
Usage
import { LiquidChrome } from "@/components/ui/liquid-chrome";
<div className="relative h-96">
<LiquidChrome color="#d4dcec" />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| color | string | "#d4dcec" | Metal tint. |
| speed | number | 1 | Animation speed multiplier. |
| scale | number | 3 | Wave frequency. |
| amplitude | number | 0.6 | Height of the flowing folds. |
| interactive | boolean | true | Cursor and click ripples. |
| className | string | — | Extra classes for the root element. |