Skip to content

Glass that bends the page.

Refractive glass UI components for React, drawn by one WebGL2 shader.

The components. Each one does a single thing the others don't. Nothing repeats, so picking one takes a second.

Built to stay out of your way

Fig 0.1

0

dependencies

A zero-dependency core engine. No three.js required for the core components, nothing extra to keep in sync.

Fig 0.2

1

WebGL2 context

One renderer draws every glass surface on the page, and it stops completely when nothing moves.

Fig 0.3

CSS

when it can't

Without WebGL2, or with reduced motion, every component keeps a plain CSS look. Never a blank box.

Install in one command

Install @vitrumui/react (coming soon) and import any component directly.

Coming soon
npm install @vitrumui/react

Working with an AI agent? Point it at llms.txt or install the skill. For AI agents

toolbar.tsx
import { GlassButton, GlassTabs } from '@vitrumui/react'

<GlassTabs
  aria-label="View"
  value={view}
  onValueChange={setView}
  options={[
    { value: 'week', label: 'Week' },
    { value: 'month', label: 'Month' },
  ]}
/>
<GlassButton material="tinted" className="bg-sky-500 text-white">
  Save
</GlassButton>