--- /** * PricingCards * Prijskaarten — 1, 2, of 3 kolommen. Highlighted plan support. * * Props: * - headline?: string * - sub?: string * - plans: Array */ interface PricingPlan { name: string; price: string; period?: string; description?: string; features: string[]; cta: { label: string; href: string }; highlighted?: boolean; badge?: string; } interface Props { headline?: string; sub?: string; plans: PricingPlan[]; } const { headline, sub, plans } = Astro.props; ---
{(headline || sub) && (
{headline &&

{headline}

} {sub &&

{sub}

}
)}
{plans.map(plan => (
{plan.badge && {plan.badge}}
{plan.name}
{plan.price} {plan.period && /{plan.period}}
{plan.description &&

{plan.description}

}
    {plan.features.map(f => (
  • {f}
  • ))}
{plan.cta.label}
))}