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 | ### update(options) |
| 8 |
| 9 | - Type: `(options: LiquidGlassOptions) => void` |
| 10 | - Group: The glass handle |
| 11 |
| 12 | Replaces the options. Cheap: the rim only rebuilds when the geometry changes. |
| 13 |
| 14 | ```ts |
| 15 | glass.update({ variant: "clear" }); |
| 16 | ``` |
| 17 |