Skip to content
npm ↗ GitHub ↗

Documentation

14/Content

Pricing

Price cards with a featured plan, feature list and a toggle between monthly and yearly billing.

Three plans

The data-cb-billing buttons change the prices marked with data-cb-price-monthly and data-cb-price-yearly.

Básico
$9/ mes

Para empezar sin complicaciones.

  • 1 proyecto
  • Soporte por correo
  • Dominio propio
Elegir
Empresa
A medida

Contrato, SLA y facturación local.

  • Proyectos ilimitados
  • Soporte dedicado
  • SSO
Hablar con ventas
HTML
<div data-cb-pricing>
  <div class="cb-billing mt-0" role="group" aria-label="Periodo de pago">
    <button class="cb-billing__option" type="button" data-cb-billing="monthly" aria-pressed="true">Mensual</button>
    <button class="cb-billing__option" type="button" data-cb-billing="yearly">Anual −20%</button>
  </div>
  <div class="cb-pricing">
    <div class="cb-price">
      <div class="cb-price__top"><span class="cb-price__name">Básico</span></div>
      <div class="cb-price__amount"><span class="cb-price__value">$<span data-cb-price-monthly="9" data-cb-price-yearly="86">9</span></span><span class="cb-price__period"><span data-cb-billing-show="monthly">/ mes</span><span data-cb-billing-show="yearly" hidden>/ año</span></span></div>
      <p class="cb-price__desc">Para empezar sin complicaciones.</p>
      <ul class="cb-price__features"><li>1 proyecto</li><li>Soporte por correo</li><li class="is-off">Dominio propio</li></ul>
      <a href="#" class="cb-btn cb-btn--outline cb-price__cta">Elegir</a>
    </div>
    <div class="cb-price cb-price--featured">
      <div class="cb-price__top"><span class="cb-price__name">Pro</span><span class="cb-tag cb-tag--live">Popular</span></div>
      <div class="cb-price__amount"><span class="cb-price__value">$<span data-cb-price-monthly="29" data-cb-price-yearly="278">29</span></span><span class="cb-price__period"><span data-cb-billing-show="monthly">/ mes</span><span data-cb-billing-show="yearly" hidden>/ año</span></span></div>
      <p class="cb-price__desc">Para equipos que ya están creciendo.</p>
      <ul class="cb-price__features"><li>10 proyectos</li><li>Soporte prioritario</li><li>Dominio propio</li></ul>
      <a href="#" class="cb-btn cb-btn--primary cb-price__cta">Elegir Pro ↗</a>
    </div>
    <div class="cb-price">
      <div class="cb-price__top"><span class="cb-price__name">Empresa</span></div>
      <div class="cb-price__amount"><span class="cb-price__value">A medida</span></div>
      <p class="cb-price__desc">Contrato, SLA y facturación local.</p>
      <ul class="cb-price__features"><li>Proyectos ilimitados</li><li>Soporte dedicado</li><li>SSO</li></ul>
      <a href="#" class="cb-btn cb-btn--outline cb-price__cta">Hablar con ventas</a>
    </div>
  </div>
</div>

Classes and modifiers

ClassDescription
.cb-pricingGrid of 3 plans with shared borders. --2 and --4 for other counts.
.cb-pricePlan. --featured adds a background and an accent top line.
.cb-price__name, .cb-price__value, .cb-price__periodName, price and period.
.cb-price__featuresList with ✓. li.is-off strikes it through.
.cb-price__ctaButton pushed to the bottom.
.cb-billing, .cb-billing__optionPeriod selector.

data-cb-* attributes

AttributeDescription
data-cb-pricingContainer that groups the selector and prices.
data-cb-billing="monthly|yearly"Button that changes the period.
data-cb-price-monthly / data-cb-price-yearlyPrice values for each period.
data-cb-billing-show="periodo"Element visible only in that period.

JavaScript

EventWhen it fires
cb:changeOn the container when the period changes (detail.period).

Accessibility

  • The selector is a group of buttons with aria-pressed.
  • Disabled features shouldn't be conveyed by strikethrough alone; use clear text.