# Installation

> Install `@vitrumui/react` (coming soon) and import components into your React app.

## Requirements

- React 19 (Next.js 15+, Vite, TanStack Start, React Router…)
- Tailwind CSS v4 (or the bundled stylesheet)
- Optional: `three` if you use RangeSlider, Switch or Checkbox.

## Install the package

The npm package `@vitrumui/react` is coming soon. Once published, install it with your package manager:

```bash
npm install @vitrumui/react # coming soon
```

```tsx
import { GlassButton } from '@vitrumui/react'

export function Hero() {
  return <GlassButton material="tinted" className="bg-sky-500 text-white">Get started</GlassButton>
}
```

## Dark mode

The glass reads its colours from your CSS (the nearest opaque background and the element's own colours), so it follows whatever theme system you use. Clear glass picks its text colour from the tone it ends up, so labels stay readable on light and dark backdrops alike.

## Next.js

The component entries ship with `"use client"`. Import them from server components as usual.

Source: /docs/installation
