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 | ### drawBack() |
| 8 |
| 9 | - Type: `() => Promise<boolean>` |
| 10 | - Group: The glass handle |
| 11 |
| 12 | Draws the surface back into where it poured from: the contents go first and the glass rounds into a drop that shrinks into the button, which reappears with a bulge. Presses go through to what it covered meanwhile. Resolves true once the glass has gone, when you hide the surface, or false if pourFrom() reopened it. |
| 13 |
| 14 | ```ts |
| 15 | if (await glass.drawBack()) setOpen(false); |
| 16 | ``` |
| 17 |