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/ año
Para empezar sin complicaciones.
- 1 proyecto
- Soporte por correo
- Dominio propio
ProPopular
$29/ mes/ año
Para equipos que ya están creciendo.
- 10 proyectos
- Soporte prioritario
- Dominio propio
Empresa
A medida
Contrato, SLA y facturación local.
- Proyectos ilimitados
- Soporte dedicado
- SSO
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
| Class | Description |
|---|---|
.cb-pricing | Grid of 3 plans with shared borders. --2 and --4 for other counts. |
.cb-price | Plan. --featured adds a background and an accent top line. |
.cb-price__name, .cb-price__value, .cb-price__period | Name, price and period. |
.cb-price__features | List with ✓. li.is-off strikes it through. |
.cb-price__cta | Button pushed to the bottom. |
.cb-billing, .cb-billing__option | Period selector. |
data-cb-* attributes
| Attribute | Description |
|---|---|
data-cb-pricing | Container that groups the selector and prices. |
data-cb-billing="monthly|yearly" | Button that changes the period. |
data-cb-price-monthly / data-cb-price-yearly | Price values for each period. |
data-cb-billing-show="periodo" | Element visible only in that period. |
JavaScript
| Event | When it fires |
|---|---|
cb:change | On 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.