Liquid Glass for the web: the rim refraction, light and motion of iOS 27 glass on any rounded element. React bindings and pill tabs. MIT.
| 4 |
| 5 | Version 0.1.0. Install: `npm install @colineapp/liquid-glass`. npm: https://www.npmjs.com/package/@colineapp/liquid-glass. Source: https://upstream.codes/coline/liquid-glass. Playground: https://liquid-glass.coline.space. |
| 6 |
| 7 | ### samples |
| 8 |
| 9 | - Type: `1 | 4` |
| 10 | - Default: `1` |
| 11 | - Group: Glass options |
| 12 |
| 13 | Refraction samples per pixel. 4 antialiases the bend, so edges it stretches don't stair-step as the glass moves. It costs four displacement passes, so keep it for small glass with nothing blurring its backdrop, like a lens. |
| 14 |
| 15 | ```tsx |
| 16 | <LiquidGlass variant="lens" samples={4} /> |
| 17 | ``` |
| 18 |