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. Playground: https://liquid-glass.coline.space. |
| 6 |
| 7 | ### geometry |
| 8 |
| 9 | - Type: `Partial<GlassGeometry>` |
| 10 | - Default: DEFAULT_GEOMETRY |
| 11 | - Group: Glass options |
| 12 |
| 13 | The rim's shape, measured from iOS 27: its width and depth, how steeply it bends, the darkened edge and the glints. See the geometry fields below. `LENS_GEOMETRY` is the rim for a control-high lens. |
| 14 |
| 15 | ```tsx |
| 16 | <LiquidGlass geometry={{ maxFall: 0.5, edge: 1 }} /> |
| 17 | ``` |
| 18 |