website-glass

Introduction

Apple Liquid Glass components for React — 22 components, shadcn registry, zero runtime dependencies.

website-glass is a family of Apple Liquid Glass components for React, installed as source you own via the shadcn CLI.

It is built on a cross-browser lens engine: an SVG feDisplacementMap filter refracts live DOM content (text stays selectable, links stay clickable), and the components layer iOS-style interactions on top — spring physics, gel presses, rubber-band overdrag.

Components

ComponentDescription
glassCore lens engine + GlassSurface frosted panel + animation utilities
glass-buttonIcon disc or text capsule with gel press animation
glass-switchiOS toggle — thumb lifts into a glass lens on press
glass-sliderRange slider — handle turns into a refracting lens while dragging
glass-tabsTab list with spring-driven glass indicator
glass-tooltipFrosted capsule that scales in from its anchor
glass-inputSearch capsule with glowing focus ring
glass-popoverFrosted context menu with hairline separators
glass-dialogModal glass panel that scales into place
glass-dockmacOS-style dock with proximity magnification
glass-tileCheap selectable glass grid cell (scales to hundreds)
glass-swatchGlass-edged colour swatch for palette pickers
glass-cardFrosted card surface with header/content/footer parts
glass-checkboxGlass checkbox with accent fill + checkmark
glass-radioGlass radio group with accent dot
glass-toggle-groupSegmented control with sliding indicator
glass-accordionCollapsible sections with smooth height transition
glass-dropdown-menuPortaled dropdown menu with keyboard nav
glass-selectFrosted select with a portaled listbox
glass-sheetDrawer that slides in from any edge
glass-toastSingleton toast system + viewport
glass-command⌘K command palette with live filtering

Install

Every component depends on the glass base. It installs automatically:

npx shadcn@latest add https://websiteglass.com/r/glass.json

Install individual components:

npx shadcn@latest add https://websiteglass.com/r/glass-button.json
npx shadcn@latest add https://websiteglass.com/r/glass-switch.json
npx shadcn@latest add https://websiteglass.com/r/glass-slider.json
npx shadcn@latest add https://websiteglass.com/r/glass-tabs.json

Requirements

  • React 18 or 19
  • Tailwind CSS v4
  • clsx + tailwind-merge (standard shadcn setup)