A wave of liquid glass between two sections that refracts both and slides with the cursor.
Glass
A click cracks the glass from that point; the shards fall with physics and then snap back together.
Included in Pro and Lifetime. See pricing
Made with Furin: Pill Nav · Metal Button · Copy Morph
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | "" | Content that sits behind the glass. |
pieces | number | 9 | Crack radii; more radii, more shards. |
gravity | number | 1 | Multiplier for the gravity on the shards. |
auto | boolean | false | Breaks the glass on its own every so often while nobody touches it. |
autoDelay | number | 3200 | Wait between automatic breaks, in ms. |
scene | boolean | false | Draws a color scene behind the glass. |
sound | boolean | false | Synthesized glass-breaking sound (only after a click). |
inset | number | 22 | Margin between the edge and the glass panel, in px. |
radius | number | 26 | Corner radius of the panel, in px. |
hint | string | "Click the glass" | Small phrase at the bottom that fades once the glass breaks (empty to hide it). |
1Set up the Pro registry once
Pro components aren't on npm or in the public shadcn registry: you install them with your license from Furin's private registry.
Use my license2Install Glass Shatter
npx shadcn@latest add @furin-pro/ glass-shatterPro components install into your project: the code is yours and there's nothing else to download.
A wave of liquid glass between two sections that refracts both and slides with the cursor.
Glass
A drop of liquid glass follows the cursor and merges with the edges of buttons, stretching like a liquid.
Glass
A fluted glass panel that splits the content behind it into refracted strips that move with the cursor.
Glass