Blocks
v1.0.0Added in 1.0.0
The pricing page of a SaaS: hero, plans with a monthly or yearly and dollar or euro switch, comparison, quotes, FAQ and a closing call.
Switch the billing period between Monthly and Yearly (the yearly option carries a "2 months free" badge) and every price rolls to its new value; switch the currency between dollars and euros and the prices convert at eurRate, rounded to whole euros. Each plan has one action: it spins while onSelectPlan runs, and without a handler a toast confirms the choice ("Pro plan, yearly"). Hover, focus or tap the (i) next to a feature or comparison row to read its hint. Below the plans the comparison is a table with a sticky row of plans on desktop and a plan picker with one list on phones. The FAQ is an accordion: Enter or Space opens a question, arrow keys move between them. On phones the header keeps the logo, Try for free and a menu button that opens a bottom sheet with the links (drag the handle, tap outside or press Escape to close); the plans become a swipeable carousel that starts on the featured plan (or a plain stack), the quotes a snap rail, the FAQ one column and the closing buttons stack. Tab starts with a skip link to the content. Sections rise in once on mount and the closing band as it scrolls into view; reduced motion keeps everything still.
npx wingo-ui@latest add pricing-pagePro item: the CLI needs a Pro account. See plans