Skip to content
Website Sections

PricingPrism

Pricing cards with a monthly / yearly switch. A spectrum splits around the pointer and runs along the card edge, like light through glass.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
plansPricingPrismPlan[]—Each has name, monthly and features, plus optional text, yearly, cta, href, featured and badge.
titlestring—Heading above the cards.
eyebrowstring—Small line above the title.
subtitlestring—Line under the title.
onSelect(plan, period) => void—Called when a plan button without href is pressed.
labelsobjectEnglishWords for the switch and the price ending: monthly, yearly, perMonth, perYear.
savingstring—Small note beside the switch, such as Save 20%.
tilestring"#15122a"Card colour.
colorsstring[]7 coloursSpectrum colours. Repeat the first at the end for a smooth ring.
headingAsElementType"h2"Heading tag.
classNamestring"bg-[#0b0a14] px-5 py-16 text-white"Set padding and colours here.