unslopkit

Components / Selects and toggles

Billing period switch

A two way switch between monthly and yearly that swaps the price and the small print above it. For pricing where the period changes the number.

Unlimited classes · Kiln Street Yoga

$118$98a month

Billed each month. Pause or cancel any time.Billed as $1,176 once a year, mat hire included.

Monthly Yearly Save $240
Drawn in your kit, Plain.Change the look

The code

Plain HTML and CSS on your kit's variables. Put it next to tokens/variables.css from your kit's files and it draws in your look.

<div class="ukc-toggle-billing-period">
<div class="bp">
  <p class="k">Unlimited classes · Kiln Street Yoga</p>
  <p class="price"><span class="m">$118</span><span class="y">$98</span><small>a month</small></p>
  <p class="note" aria-live="polite"><span class="m">Billed each month. Pause or cancel any time.</span><span class="y">Billed as $1,176 once a year, mat hire included.</span></p>
  <div class="sw">
    <span class="l lm">Monthly</span>
    <label class="track"><input type="checkbox" role="switch" checked aria-label="Bill yearly"><i></i></label>
    <span class="l ly">Yearly</span>
    <span class="save">Save $240</span>
  </div>
</div>
</div>

More selects and toggles

All 28
  • How should we contact you?

    Large radios

  • Email notifications
    Weekly digest

    Labelled switch

  • Auto-send invoices

    On

    Round hours up

    Off

    Switch with state text

  • Checkbox tiles

  • Segmented control

  • Select with its list open