# Introduction

> Glass components for React, drawn by one WebGL2 shader.

Vitrum is a set of refractive glass UI components for React, drawn by one WebGL2 shader. Each does one thing the others don't. Install `@vitrumui/react` (coming soon) and use the components directly in your app.

01. **Press** — [GlassButton](/docs/button): Swells under the pointer, bends the page behind it.
02. **Merge** — [GlassActionButton](/docs/action-button): The arrow is a droplet: press it and it melts in for good.
03. **Travel** — [GlassTabs](/docs/tabs): The selection travels as a lens that magnifies what it passes.
04. **Flow** — [GlassBadge](/docs/badge): Text flows through the glass; the rim bends each letter.
05. **Drag** — [GlassSlideToConfirm](/docs/slide-to-confirm): Drag the glass thumb to the end to confirm.
06. **Hold** — [GlassCard](/docs/card): Holds your content; its rim bends what slides behind.
07. **Slide** — [RangeSlider](/docs/slider): The thumb opens into a wide lens that bends the track and stretches as it moves.
08. **Flip** — [Switch](/docs/switch): The knob swells into clear glass as it crosses, then settles white.
09. **Tick** — [Checkbox](/docs/checkbox): Always glass: the mark draws itself beneath a clear cap that swells when pressed.
10. **Stretch** — [GlassSelect](/docs/select): The list and its button are one liquid: a neck stretches between them, thins and snaps.
11. **Share** — [GlassButtonGroup](/docs/button-group): Several buttons, one body of glass.
12. **Open** — [GlassDropdownMenu](/docs/dropdown-menu): Actions pour out of the control that opens them, a whole button group included.

## How it works

- **Zero-dependency engine.** One WebGL2 context for the whole page, no three.js required for the core components.
- **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
