Pricing

Period Switch Pricing

Plans with a monthly/annual switch: two radio buttons hold the state and the prices swap through the :has() selector — without a line of JavaScript.

What you can change

  • the title and lede copy above the switch
  • the monthLabel and yearLabel captions and the saveLabel badge
  • the plans array: name, monthly, yearly, yearlyNote, up to six features and the action button

A link for your AI agent: preview, code and instructions.

Preview

1440pxHost theme

Use it with AI

  1. 1. Copy the link.
  2. 2. Write to your agent in your own words and drop the link into the sentence.
  3. 3. The agent opens the link and installs the component from the registry.
AI
1Pick it here

put this on the home page as the hero:

https://vibeui.ru/c/pricing-003?lang=en&theme=dark

2Paste into the chat
3Get it in your project

Not sure where to paste it? Step-by-step guide

Show the full instructions

What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.

Loading…

For developers

The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.

Technical notes

A server component, one file, zero dependencies. The --vibeui-pricing-003-* palette is declared through light-dark(), so the block follows the surrounding color-scheme; it has no background of its own and one is turned on by the background prop. Both prices sit in the markup and the extra one is hidden with display:none; the choice is made by a rule of the form [data-vibeui-block="pricing-003"]:has([data-part="periodyear"]:checked). The radio buttons are moved off screen but stay in the focus order, and the ring is drawn on the label. The discount is captioned with a badge right inside the switch. The layout: a column up to 56rem, three columns from 56rem through a container query.

Tags

  • pricing
  • toggle
  • no-js
  • annual
Component source

The same file your agent installs. Here in case you would rather copy it by hand.

Loading…