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.
| 1 | # @colineapp/liquid-glass |
| 2 | |
| 3 | > Liquid Glass for the web: the rim refraction, light and motion of iOS 27's glass on any rounded element, with React bindings, menus that pour out of their button, and segmented tabs whose thumb clears into a lens. MIT. |
| 4 | |
| 5 | Version 0.2.0. Install: `npm install @colineapp/liquid-glass` |
| 6 |
| 7 | ### samples |
| 8 |
| 9 | - Type: `1 | 4` |
| 10 | - Default: `4` |
| 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 over the rim. 1 is cheaper for large glass. |
| 14 |
| 15 | ```tsx |
| 16 | <LiquidGlass samples={1} /> |
| 17 | ``` |
| 18 |