Marketing sectionsPricingCards

Open in Create
Search
astronomic.dev

PricingCards

Pro

To compare a few plans or packages side by side, each with a price, what it includes and one action.

File
PricingCards.astro
Group
Marketing sections
Kind
Static: no JavaScript
Examples
4
import PricingCards from "@astronomic/ui-pro/components/PricingCards.astro";

Examples

Drag the orange handle to set the width. Frames get real breakpoints.

  • Static
  • Interactive
  • Framed

Three plans

Each plan on a card, the cards in a row the same height, so every button sits on one line. As many columns as fit, each at least 16rem: one on a phone, three on a wide page. The highlighted plan has the accent edge, its badge and the primary button.

main.astro

In a narrow column

Two plans in a 24rem column: one column of cards, a five-figure price on one line, and a long feature word stays inside its card (on a phone, where the card is narrower than the word, it breaks).

narrow.astro

Local prices

Prices in another currency and in words: "CHF 1’299.00" fits a phone card on one line, and "Starting at CHF 1’299.00" wraps between its words, never inside the number. Every price in a list takes the size at which the widest fits.

local.astro

On sale

Two plans on sale beside one at its usual price: regularPrice strikes the usual price through after the sale price, and priceNote puts the saving beside it in a badge. A screen reader hears "Regular price $199", so the struck price is never read as the price. Set both only while the sale runs.

sale.astro
Minimal · Light

Waitlist

Be first in line

Join the waitlist and we'll email you the moment it's out.

You'll also get our newsletter: new themes, plugins and guides. Unsubscribe any time.