# Introduction

> React components drawn in WebGL2.

Vitrum is a set of refractive glass UI components for React, drawn in WebGL2. Core surfaces share one zero-dependency WebGL2 engine, while `RangeSlider`, `Switch` and `Checkbox` use an optional Three.js WebGL2 renderer. Each component does one thing the others don't. Install `@vitrumui/react` and use them directly in your app.

- [GlassButton](/docs/button) (Press): Swells under the pointer, bends the page behind it.
- [GlassActionButton](/docs/action-button) (Merge): The arrow is a droplet: press it and it melts in for good.
- [GlassTabs](/docs/tabs) (Travel): The selection travels as a lens that magnifies what it passes.
- [GlassBadge](/docs/badge) (Flow): Text flows through the glass; the rim bends each letter.
- [GlassSlideToConfirm](/docs/slide-to-confirm) (Drag): Drag the glass thumb to the end to confirm.
- [GlassCard](/docs/card) (Hold): Holds your content; its rim bends what slides behind.
- [RangeSlider](/docs/slider) (Slide): The thumb opens into a wide lens that bends the track and stretches as it moves.
- [Switch](/docs/switch) (Flip): The knob swells into clear glass as it crosses, then settles white.
- [Checkbox](/docs/checkbox) (Tick): Always glass: the mark draws itself beneath a clear cap that swells when pressed.
- [GlassSelect](/docs/select) (Stretch): The list and its button are one liquid: a neck stretches between them, thins and snaps.
- [GlassButtonGroup](/docs/button-group) (Share): Several buttons, one body of glass.
- [GlassDropdownMenu](/docs/dropdown-menu) (Open): Actions pour out of the control that opens them, a whole button group included.
- [GlassPopover](/docs/popover) (Unfold): The button unfolds into a small surface, right where it is.
- [GlassMenu](/docs/menu) (Grow): The button's glass grows into a full menu, on whichever side the menu lies.
- [GlassSearch](/docs/search) (Bud): One field looks in every layer; the layers bud off it as droplets.

## How it works

- **Shared WebGL2 engine + optional Three.js controls.** All core surfaces share one zero-dependency WebGL2 context (no `three` required). `RangeSlider`, `Switch` and `Checkbox` load Three.js only when mounted.
- **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.

## Customisation

Customise components through documented props, Tailwind utility classes (`className`, `bg-*`, `text-*`), and CSS variables (`--vt-tint`).

Source: /docs/introduction
