Glass Pricing Tiers
A pricing section where each plan is a thicker pane of glass than the last, and the plan you choose puts a lens over its price.
Canvas 2D0 deps1 file · 25 KB TSXreduced-motion aware
Props
"use client";
import { useEffect, useId, useRef, useState } from "react";
import type { CSSProperties, ReactNode } from "react";
/**
* GlassPricingTiers — a pricing section where each plan is a thicker pane of
* glass than the one before, and the plan you choose puts a lens over its
* price.
*
* The plans read as a material scale: the first is a thin, nearly clear pane;
* each step up is thicker (more blur, more saturation, a wider bent rim in
* Chromium, a deeper shadow) and carries a little more of the accent tint.
* Choose a plan (click it anywhere, or use the arrow keys, since the plans
* are a real radio group) and a clear lens forms over its price: the digits
* swell about 1.2× through it under a raised dome of glass (a cast shadow,
* a specular arc and a caustic at its foot), and the real digits hide beneath
* it so nothing doubles. It forms by magnifying, never by fading. A light
// ---------------------------------------------------------------
// Full source available with a viberdy Pro subscription.
// https://viberdy.dev/pricing
// ---------------------------------------------------------------
}Details
About this section
Most pricing tables tell you which plan is bigger with a badge and a brighter border. Here the material says it. Each plan is a pane of liquid glass, and each step up is a thicker one: more blur, more saturation, a wider bent rim and a deeper shadow, with a little more of your accent mixed in, so three cards read as a scale before anyone reads a price. Choose a plan by clicking anywhere on it, or with the arrow keys, since the plans are a real radio group, and a clear lens forms over its price. The digits swell about 1.2× through it under a bright rim, and the real ones hide beneath so nothing doubles; the lens forms by magnifying, never by fading in. A glass segmented control switches monthly and yearly billing on the kit's spring, and each plan's button is a real link that never changes the selection by accident. It goes from one column to three with its own width.
Curator’s note
Part of the Glassmorphism kit, drop 3. Pro because it is a full section with a stateful plan and billing system, an SVG displacement pipeline per card scaled to its tier, and a magnifying price lens.


