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-e55033.coline.space. |
| 6 |
| 7 | ### fit |
| 8 |
| 9 | - Type: `"box" | "fixed" | "scroll"` |
| 10 | - Default: `"box"` |
| 11 | - Group: Glass options |
| 12 |
| 13 | `box` fills the surface. `fixed` fills the nearest containing block for fixed elements, such as a transformed popper wrapper, so the glass holds still while the surface scrolls its own content. `scroll` spans the surface's whole scroll height, for a dialog or sheet that scrolls itself. |
| 14 |
| 15 | ```tsx |
| 16 | <LiquidGlass fit="scroll" floating="dialog" /> |
| 17 | ``` |
| 18 |