Skip to content

Get started

Introduction

Glass components for React. Copy a file, get exactly what the demo shows.

Markdown

Liquid Glass UI is a set of React components drawn by one WebGL2 glass shader. Each does one thing the others don't. There is no npm package: you copy the files into your project, and they are yours.

How it works

  • One engine. One WebGL2 context for the whole page, in plain TypeScript files. Where a component needs behaviour (keyboard, focus, forms, ARIA), it comes from UI SDK.
  • Your DOM. The glass is a canvas behind your own elements, so any router, any styling and your own markup keep working.
  • Free at rest. The render loop runs only while a spring moves and stops completely when nothing does.

Browser support

The glass needs WebGL2, which current desktop and mobile browsers have. Without it, or before the first frame, every component keeps its plain CSS look: never a blank box. With reduced motion the springs stand still and the badge text stops.

The one rule

Copy the files verbatim. The look lives in the exact shader constants and spring values. Customise through props and class names, never by editing the engine.