Glass Prism

Crystal clear glass prism pricing cards with backdrop blur.

Main Features of Glass Prism

How to Use Glass Prism in Next.js

Installation Guide for Glass Prism

Props

Customize the component with these props

PropertyTypeDefaultDescription
title
stringCrystal Clear PricingSection title text.
plans
Array<{name: string, monthlyPrice: number, yearlyPrice: number, features?: string[]}>[]Array of pricing plans with name, monthly and yearly prices, and optional features.
features
string[][]Array of feature strings to display.
backgroundColor
string#0f172aBackground color (hex, rgb, or hsl).
blob1Color
string#9333eaFirst blob color for background effect.
blob2Color
string#06b6d4Second blob color for background effect.
titleColor
string#ffffffTitle text color.
toggleBgColor
stringrgba(255,255,255,0.1)Toggle background color.
toggleBorderColor
stringrgba(255,255,255,0.2)Toggle border color.
toggleActiveColor
string#ffffffToggle active state color.
toggleInactiveColor
stringrgba(255,255,255,0.4)Toggle inactive state color.
cardBgColor
stringrgba(255,255,255,0.05)Card background color.
activeCardGradientFrom
stringrgba(168, 85, 247, 0.2)Active card gradient start color.
activeCardGradientTo
stringrgba(6, 182, 212, 0.2)Active card gradient end color.
cardBorderColor
stringrgba(255,255,255,0.1)Card border color.
planNameColor
stringrgba(255,255,255,0.8)Plan name text color.
priceColor
string#ffffffPrice text color.
priceGradientFrom
string#ffffffPrice gradient start color.
priceGradientTo
stringrgba(255,255,255,0.5)Price gradient end color.
featureTextColor
stringrgba(255,255,255,0.6)Feature text color.
featureIconBgColor
stringrgba(255,255,255,0.1)Feature icon background color.
buttonBgFrom
stringrgba(255,255,255,0.1)Button gradient start color.
buttonBgTo
stringrgba(255,255,255,0.05)Button gradient end color.
buttonBorderColor
stringrgba(255,255,255,0.1)Button border color.
buttonTextColor
string#ffffffButton text color.
buttonText
stringChoose PlanButton text.

When to Use

Excellent for modern SaaS platforms, AI tools, and Next.js applications that want a high-fidelity, transparent aesthetic. Use this React component for a pricing section where tiers are displayed as blurry glass cards with vibrant background glow effects.

Best Practices

Maintain consistent spacing within your design system by using it on dark or textured backgrounds to maximize the glass effect. Follow React best practices by using high-contrast text for the features list. Optimize for performance by managed the blur intensity on mobile devices.

Why This Component Matters in Modern UI Development

Glassmorphism creates a sense of depth and technical sophistication that appeals to modern tech users. This production-ready UI component helpsคุณ build an interface that feels lightweight and premium, improving the perceived quality of your product tiers.

Frequently Asked Questions

QIs the monthly/yearly toggle included?

Yes, the component features a smooth animated toggle that switches between monthly and yearly pricing plans.

QCan I customize the background blobs?

The `blob1Color` and `blob2Color` props allow you to customize the underlying glow colors to match your brand's palette.

QHow many features can I list?

While you can list many, it's best to keep it to 5-8 key features to ensure the glass card remains balanced and legible.

Glass Prism - React Pricing Table & Plan Card | Uilora