Calendar
A date calendar component for displaying and selecting dates.
Interactive
Requires:
veritheme.js
JS init: automatic
Default
A month calendar with one selected day.
html
February 2026
Su
Mo
Tu
We
Th
Fr
Sa
<div class="vt-calendar" data-vt-calendar="single" data-vt-calendar-month="2026-02">
<div class="vt-calendar-header">
<button type="button" class="vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm" data-vt-calendar-nav="-1" aria-label="Previous month"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
<path d="M15 18C15 18 9.00001 13.5811 9 12C8.99999 10.4188 15 6 15 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></button>
<span class="vt-calendar-title" data-vt-calendar-heading="" aria-live="polite">February 2026</span>
<button type="button" class="vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm" data-vt-calendar-nav="1" aria-label="Next month"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
<path d="M9.00005 18C9.00005 18 15 13.5811 15 12C15 10.4188 9 6 9 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></button>
</div>
<div class="vt-calendar-weekdays">
<div class="vt-calendar-weekday">Su</div><div class="vt-calendar-weekday">Mo</div><div class="vt-calendar-weekday">Tu</div><div class="vt-calendar-weekday">We</div><div class="vt-calendar-weekday">Th</div><div class="vt-calendar-weekday">Fr</div><div class="vt-calendar-weekday">Sa</div>
</div>
<div class="vt-calendar-days" data-vt-calendar-grid="">
<div class="vt-calendar-week">
<button type="button" class="vt-calendar-day" data-vt-date="2026-02-01">1</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-02">2</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-03">3</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-04">4</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-05">5</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-06">6</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-07">7</button>
</div><div class="vt-calendar-week">
<button type="button" class="vt-calendar-day" data-vt-date="2026-02-08">8</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-09">9</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-10">10</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-11">11</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-12">12</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-13">13</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-14">14</button>
</div><div class="vt-calendar-week">
<button type="button" class="vt-calendar-day vt-active" data-vt-date="2026-02-15">15</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-16">16</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-17">17</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-18">18</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-19">19</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-20">20</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-21">21</button>
</div><div class="vt-calendar-week">
<button type="button" class="vt-calendar-day" data-vt-date="2026-02-22">22</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-23">23</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-24">24</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-25">25</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-26">26</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-27">27</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-28">28</button>
</div>
</div>
</div>
With Selected Range
One band from the first day to the last; today keeps its ring.
html
February 2026
Su
Mo
Tu
We
Th
Fr
Sa
<div class="vt-calendar" data-vt-calendar="range" data-vt-calendar-month="2026-02">
<div class="vt-calendar-header">
<button type="button" class="vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm" data-vt-calendar-nav="-1" aria-label="Previous month"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
<path d="M15 18C15 18 9.00001 13.5811 9 12C8.99999 10.4188 15 6 15 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></button>
<span class="vt-calendar-title" data-vt-calendar-heading="" aria-live="polite">February 2026</span>
<button type="button" class="vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm" data-vt-calendar-nav="1" aria-label="Next month"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
<path d="M9.00005 18C9.00005 18 15 13.5811 15 12C15 10.4188 9 6 9 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></button>
</div>
<div class="vt-calendar-weekdays">
<div class="vt-calendar-weekday">Su</div><div class="vt-calendar-weekday">Mo</div><div class="vt-calendar-weekday">Tu</div><div class="vt-calendar-weekday">We</div><div class="vt-calendar-weekday">Th</div><div class="vt-calendar-weekday">Fr</div><div class="vt-calendar-weekday">Sa</div>
</div>
<div class="vt-calendar-days" data-vt-calendar-grid="">
<div class="vt-calendar-week">
<button type="button" class="vt-calendar-day" data-vt-date="2026-02-01">1</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-02">2</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-03">3</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-04">4</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-05">5</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-06">6</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-07">7</button>
</div><div class="vt-calendar-week">
<button type="button" class="vt-calendar-day" data-vt-date="2026-02-08">8</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-09">9</button><button type="button" class="vt-calendar-day vt-range-start" data-vt-date="2026-02-10">10</button><button type="button" class="vt-calendar-day vt-range-middle" data-vt-date="2026-02-11">11</button><button type="button" class="vt-calendar-day vt-range-middle" data-vt-date="2026-02-12">12</button><button type="button" class="vt-calendar-day vt-range-middle" data-vt-date="2026-02-13">13</button><button type="button" class="vt-calendar-day vt-range-middle" data-vt-date="2026-02-14">14</button>
</div><div class="vt-calendar-week">
<button type="button" class="vt-calendar-day vt-range-end vt-today" data-vt-date="2026-02-15">15</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-16">16</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-17">17</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-18">18</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-19">19</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-20">20</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-21">21</button>
</div><div class="vt-calendar-week">
<button type="button" class="vt-calendar-day" data-vt-date="2026-02-22">22</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-23">23</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-24">24</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-25">25</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-26">26</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-27">27</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-28">28</button>
</div>
</div>
</div>
Multiple Months
Two calendars side by side for February and March 2026.
html
February 2026
Su
Mo
Tu
We
Th
Fr
Sa
March 2026
Su
Mo
Tu
We
Th
Fr
Sa
<div class="vt-calendar" data-vt-calendar="single" data-vt-calendar-month="2026-02">
<div class="vt-calendar-header">
<button type="button" class="vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm" data-vt-calendar-nav="-1" aria-label="Previous month"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
<path d="M15 18C15 18 9.00001 13.5811 9 12C8.99999 10.4188 15 6 15 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></button>
<span class="vt-calendar-title" data-vt-calendar-heading="" aria-live="polite">February 2026</span>
<button type="button" class="vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm" data-vt-calendar-nav="1" aria-label="Next month"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
<path d="M9.00005 18C9.00005 18 15 13.5811 15 12C15 10.4188 9 6 9 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></button>
</div>
<div class="vt-calendar-weekdays">
<div class="vt-calendar-weekday">Su</div><div class="vt-calendar-weekday">Mo</div><div class="vt-calendar-weekday">Tu</div><div class="vt-calendar-weekday">We</div><div class="vt-calendar-weekday">Th</div><div class="vt-calendar-weekday">Fr</div><div class="vt-calendar-weekday">Sa</div>
</div>
<div class="vt-calendar-days" data-vt-calendar-grid="">
<div class="vt-calendar-week">
<button type="button" class="vt-calendar-day" data-vt-date="2026-02-01">1</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-02">2</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-03">3</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-04">4</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-05">5</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-06">6</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-07">7</button>
</div><div class="vt-calendar-week">
<button type="button" class="vt-calendar-day" data-vt-date="2026-02-08">8</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-09">9</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-10">10</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-11">11</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-12">12</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-13">13</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-14">14</button>
</div><div class="vt-calendar-week">
<button type="button" class="vt-calendar-day vt-active" data-vt-date="2026-02-15">15</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-16">16</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-17">17</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-18">18</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-19">19</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-20">20</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-21">21</button>
</div><div class="vt-calendar-week">
<button type="button" class="vt-calendar-day" data-vt-date="2026-02-22">22</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-23">23</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-24">24</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-25">25</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-26">26</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-27">27</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-28">28</button>
</div>
</div>
</div><div class="vt-calendar" data-vt-calendar="single" data-vt-calendar-month="2026-03">
<div class="vt-calendar-header">
<button type="button" class="vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm" data-vt-calendar-nav="-1" aria-label="Previous month"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
<path d="M15 18C15 18 9.00001 13.5811 9 12C8.99999 10.4188 15 6 15 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></button>
<span class="vt-calendar-title" data-vt-calendar-heading="" aria-live="polite">March 2026</span>
<button type="button" class="vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm" data-vt-calendar-nav="1" aria-label="Next month"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
<path d="M9.00005 18C9.00005 18 15 13.5811 15 12C15 10.4188 9 6 9 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></button>
</div>
<div class="vt-calendar-weekdays">
<div class="vt-calendar-weekday">Su</div><div class="vt-calendar-weekday">Mo</div><div class="vt-calendar-weekday">Tu</div><div class="vt-calendar-weekday">We</div><div class="vt-calendar-weekday">Th</div><div class="vt-calendar-weekday">Fr</div><div class="vt-calendar-weekday">Sa</div>
</div>
<div class="vt-calendar-days" data-vt-calendar-grid="">
<div class="vt-calendar-week">
<button type="button" class="vt-calendar-day" data-vt-date="2026-03-01">1</button><button type="button" class="vt-calendar-day" data-vt-date="2026-03-02">2</button><button type="button" class="vt-calendar-day" data-vt-date="2026-03-03">3</button><button type="button" class="vt-calendar-day" data-vt-date="2026-03-04">4</button><button type="button" class="vt-calendar-day" data-vt-date="2026-03-05">5</button><button type="button" class="vt-calendar-day" data-vt-date="2026-03-06">6</button><button type="button" class="vt-calendar-day" data-vt-date="2026-03-07">7</button>
</div><div class="vt-calendar-week">
<button type="button" class="vt-calendar-day" data-vt-date="2026-03-08">8</button><button type="button" class="vt-calendar-day" data-vt-date="2026-03-09">9</button><button type="button" class="vt-calendar-day" data-vt-date="2026-03-10">10</button><button type="button" class="vt-calendar-day" data-vt-date="2026-03-11">11</button><button type="button" class="vt-calendar-day" data-vt-date="2026-03-12">12</button><button type="button" class="vt-calendar-day" data-vt-date="2026-03-13">13</button><button type="button" class="vt-calendar-day" data-vt-date="2026-03-14">14</button>
</div><div class="vt-calendar-week">
<button type="button" class="vt-calendar-day" data-vt-date="2026-03-15">15</button><button type="button" class="vt-calendar-day" data-vt-date="2026-03-16">16</button><button type="button" class="vt-calendar-day" data-vt-date="2026-03-17">17</button><button type="button" class="vt-calendar-day" data-vt-date="2026-03-18">18</button><button type="button" class="vt-calendar-day" data-vt-date="2026-03-19">19</button><button type="button" class="vt-calendar-day" data-vt-date="2026-03-20">20</button><button type="button" class="vt-calendar-day" data-vt-date="2026-03-21">21</button>
</div><div class="vt-calendar-week">
<button type="button" class="vt-calendar-day" data-vt-date="2026-03-22">22</button><button type="button" class="vt-calendar-day" data-vt-date="2026-03-23">23</button><button type="button" class="vt-calendar-day" data-vt-date="2026-03-24">24</button><button type="button" class="vt-calendar-day" data-vt-date="2026-03-25">25</button><button type="button" class="vt-calendar-day" data-vt-date="2026-03-26">26</button><button type="button" class="vt-calendar-day" data-vt-date="2026-03-27">27</button><button type="button" class="vt-calendar-day" data-vt-date="2026-03-28">28</button>
</div><div class="vt-calendar-week">
<button type="button" class="vt-calendar-day" data-vt-date="2026-03-29">29</button><button type="button" class="vt-calendar-day" data-vt-date="2026-03-30">30</button><button type="button" class="vt-calendar-day" data-vt-date="2026-03-31">31</button><button type="button" class="vt-calendar-day vt-outside" data-vt-date="2026-04-01">1</button><button type="button" class="vt-calendar-day vt-outside" data-vt-date="2026-04-02">2</button><button type="button" class="vt-calendar-day vt-outside" data-vt-date="2026-04-03">3</button><button type="button" class="vt-calendar-day vt-outside" data-vt-date="2026-04-04">4</button>
</div>
</div>
</div>
With Events
Calendar with colored dots marking the days that have events.
html
February 2026
Su
Mo
Tu
We
Th
Fr
Sa
<div class="vt-calendar" data-vt-calendar="single" data-vt-calendar-month="2026-02">
<div class="vt-calendar-header">
<button type="button" class="vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm" data-vt-calendar-nav="-1" aria-label="Previous month"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
<path d="M15 18C15 18 9.00001 13.5811 9 12C8.99999 10.4188 15 6 15 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></button>
<span class="vt-calendar-title" data-vt-calendar-heading="" aria-live="polite">February 2026</span>
<button type="button" class="vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm" data-vt-calendar-nav="1" aria-label="Next month"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
<path d="M9.00005 18C9.00005 18 15 13.5811 15 12C15 10.4188 9 6 9 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></button>
</div>
<div class="vt-calendar-weekdays">
<div class="vt-calendar-weekday">Su</div><div class="vt-calendar-weekday">Mo</div><div class="vt-calendar-weekday">Tu</div><div class="vt-calendar-weekday">We</div><div class="vt-calendar-weekday">Th</div><div class="vt-calendar-weekday">Fr</div><div class="vt-calendar-weekday">Sa</div>
</div>
<div class="vt-calendar-days" data-vt-calendar-grid="">
<div class="vt-calendar-week">
<button type="button" class="vt-calendar-day" data-vt-date="2026-02-01">1</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-02">2</button><div class="vt-calendar-cell">
<button type="button" class="vt-calendar-day" data-vt-date="2026-02-03">3</button>
<span class="vt-calendar-dot"></span>
</div><button type="button" class="vt-calendar-day" data-vt-date="2026-02-04">4</button><div class="vt-calendar-cell">
<button type="button" class="vt-calendar-day" data-vt-date="2026-02-05">5</button>
<span class="vt-calendar-dot"></span>
</div><button type="button" class="vt-calendar-day" data-vt-date="2026-02-06">6</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-07">7</button>
</div><div class="vt-calendar-week">
<button type="button" class="vt-calendar-day" data-vt-date="2026-02-08">8</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-09">9</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-10">10</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-11">11</button><div class="vt-calendar-cell">
<button type="button" class="vt-calendar-day" data-vt-date="2026-02-12">12</button>
<span class="vt-calendar-dot vt-calendar-dot-warning"></span>
</div><button type="button" class="vt-calendar-day" data-vt-date="2026-02-13">13</button><div class="vt-calendar-cell">
<button type="button" class="vt-calendar-day" data-vt-date="2026-02-14">14</button>
<span class="vt-calendar-dot vt-calendar-dot-error"></span>
</div>
</div><div class="vt-calendar-week">
<button type="button" class="vt-calendar-day vt-active" data-vt-date="2026-02-15">15</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-16">16</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-17">17</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-18">18</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-19">19</button><div class="vt-calendar-cell">
<button type="button" class="vt-calendar-day" data-vt-date="2026-02-20">20</button>
<span class="vt-calendar-dot"></span>
</div><button type="button" class="vt-calendar-day" data-vt-date="2026-02-21">21</button>
</div><div class="vt-calendar-week">
<button type="button" class="vt-calendar-day" data-vt-date="2026-02-22">22</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-23">23</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-24">24</button><div class="vt-calendar-cell">
<button type="button" class="vt-calendar-day" data-vt-date="2026-02-25">25</button>
<span class="vt-calendar-dot"></span>
</div><button type="button" class="vt-calendar-day" data-vt-date="2026-02-26">26</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-27">27</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-28">28</button>
</div>
</div>
</div>
Mini Calendar
A compact calendar with smaller days and tighter spacing.
html
February 2026
Su
Mo
Tu
We
Th
Fr
Sa
<div class="vt-calendar vt-calendar-sm" data-vt-calendar="single" data-vt-calendar-month="2026-02">
<div class="vt-calendar-header">
<button type="button" class="vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm" data-vt-calendar-nav="-1" aria-label="Previous month"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
<path d="M15 18C15 18 9.00001 13.5811 9 12C8.99999 10.4188 15 6 15 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></button>
<span class="vt-calendar-title" data-vt-calendar-heading="" aria-live="polite">February 2026</span>
<button type="button" class="vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm" data-vt-calendar-nav="1" aria-label="Next month"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
<path d="M9.00005 18C9.00005 18 15 13.5811 15 12C15 10.4188 9 6 9 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></button>
</div>
<div class="vt-calendar-weekdays">
<div class="vt-calendar-weekday">Su</div><div class="vt-calendar-weekday">Mo</div><div class="vt-calendar-weekday">Tu</div><div class="vt-calendar-weekday">We</div><div class="vt-calendar-weekday">Th</div><div class="vt-calendar-weekday">Fr</div><div class="vt-calendar-weekday">Sa</div>
</div>
<div class="vt-calendar-days" data-vt-calendar-grid="">
<div class="vt-calendar-week">
<button type="button" class="vt-calendar-day" data-vt-date="2026-02-01">1</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-02">2</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-03">3</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-04">4</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-05">5</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-06">6</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-07">7</button>
</div><div class="vt-calendar-week">
<button type="button" class="vt-calendar-day" data-vt-date="2026-02-08">8</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-09">9</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-10">10</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-11">11</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-12">12</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-13">13</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-14">14</button>
</div><div class="vt-calendar-week">
<button type="button" class="vt-calendar-day vt-active" data-vt-date="2026-02-15">15</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-16">16</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-17">17</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-18">18</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-19">19</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-20">20</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-21">21</button>
</div><div class="vt-calendar-week">
<button type="button" class="vt-calendar-day" data-vt-date="2026-02-22">22</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-23">23</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-24">24</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-25">25</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-26">26</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-27">27</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-28">28</button>
</div>
</div>
</div>
Date Picker
The same calendar in a card that opens from a field, with optional quick ranges.
html
February 2026
Su
Mo
Tu
We
Th
Fr
Sa
<div class="vt-date-picker-field">
<button type="button" class="vt-input vt-date-picker-trigger" aria-haspopup="dialog" aria-expanded="false" onclick="var cal=this.nextElementSibling; cal.classList.toggle('vt-hidden'); this.setAttribute('aria-expanded', String(!cal.classList.contains('vt-hidden')))">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" aria-hidden="true">
<path d="M16 2V6M8 2V6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M13 4H11C7.22876 4 5.34315 4 4.17157 5.17157C3 6.34315 3 8.22876 3 12V14C3 17.7712 3 19.6569 4.17157 20.8284C5.34315 22 7.22876 22 11 22H13C16.7712 22 18.6569 22 19.8284 20.8284C21 19.6569 21 17.7712 21 14V12C21 8.22876 21 6.34315 19.8284 5.17157C18.6569 4 16.7712 4 13 4Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M3 10H21" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M10 18.5002L9.99999 13.8474C9.99999 13.6557 9.86325 13.5002 9.69458 13.5002H9M14 18.4983L15.4855 13.8923C15.4951 13.8626 15.5 13.8315 15.5 13.8002C15.5 13.6346 15.3657 13.5002 15.2 13.5002L13 13.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg>
<span class="vt-date-picker-placeholder">Pick a date</span>
</button>
<div class="vt-calendar vt-date-picker-floating vt-hidden" data-vt-calendar="single" data-vt-calendar-month="2026-02">
<div class="vt-calendar-header">
<button type="button" class="vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm" data-vt-calendar-nav="-1" aria-label="Previous month"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
<path d="M15 18C15 18 9.00001 13.5811 9 12C8.99999 10.4188 15 6 15 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></button>
<span class="vt-calendar-title" data-vt-calendar-heading="" aria-live="polite">February 2026</span>
<button type="button" class="vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm" data-vt-calendar-nav="1" aria-label="Next month"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
<path d="M9.00005 18C9.00005 18 15 13.5811 15 12C15 10.4188 9 6 9 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg></button>
</div>
<div class="vt-calendar-weekdays">
<div class="vt-calendar-weekday">Su</div><div class="vt-calendar-weekday">Mo</div><div class="vt-calendar-weekday">Tu</div><div class="vt-calendar-weekday">We</div><div class="vt-calendar-weekday">Th</div><div class="vt-calendar-weekday">Fr</div><div class="vt-calendar-weekday">Sa</div>
</div>
<div class="vt-calendar-days" data-vt-calendar-grid="">
<div class="vt-calendar-week">
<button type="button" class="vt-calendar-day" data-vt-date="2026-02-01">1</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-02">2</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-03">3</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-04">4</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-05">5</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-06">6</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-07">7</button>
</div><div class="vt-calendar-week">
<button type="button" class="vt-calendar-day" data-vt-date="2026-02-08">8</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-09">9</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-10">10</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-11">11</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-12">12</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-13">13</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-14">14</button>
</div><div class="vt-calendar-week">
<button type="button" class="vt-calendar-day" data-vt-date="2026-02-15">15</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-16">16</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-17">17</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-18">18</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-19">19</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-20">20</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-21">21</button>
</div><div class="vt-calendar-week">
<button type="button" class="vt-calendar-day" data-vt-date="2026-02-22">22</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-23">23</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-24">24</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-25">25</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-26">26</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-27">27</button><button type="button" class="vt-calendar-day" data-vt-date="2026-02-28">28</button>
</div>
</div>
</div>
</div>
html
<button type="button" class="vt-input vt-date-picker-trigger">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" aria-hidden="true">
<path d="M16 2V6M8 2V6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M13 4H11C7.22876 4 5.34315 4 4.17157 5.17157C3 6.34315 3 8.22876 3 12V14C3 17.7712 3 19.6569 4.17157 20.8284C5.34315 22 7.22876 22 11 22H13C16.7712 22 18.6569 22 19.8284 20.8284C21 19.6569 21 17.7712 21 14V12C21 8.22876 21 6.34315 19.8284 5.17157C18.6569 4 16.7712 4 13 4Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M3 10H21" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M10 18.5002L9.99999 13.8474C9.99999 13.6557 9.86325 13.5002 9.69458 13.5002H9M14 18.4983L15.4855 13.8923C15.4951 13.8626 15.5 13.8315 15.5 13.8002C15.5 13.6346 15.3657 13.5002 15.2 13.5002L13 13.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
</svg>
<span>Last 7 days</span>
</button>
<div class="vt-date-picker-presets">
<button type="button" class="vt-btn vt-btn-sm vt-btn-secondary" aria-pressed="false" onclick="var row=this.parentElement; row.querySelectorAll('.vt-btn').forEach(function(b){b.classList.replace('vt-btn-primary','vt-btn-secondary');b.setAttribute('aria-pressed','false')}); this.classList.replace('vt-btn-secondary','vt-btn-primary'); this.setAttribute('aria-pressed','true'); row.previousElementSibling.querySelector('span').textContent=this.textContent">Today</button><button type="button" class="vt-btn vt-btn-sm vt-btn-secondary" aria-pressed="false" onclick="var row=this.parentElement; row.querySelectorAll('.vt-btn').forEach(function(b){b.classList.replace('vt-btn-primary','vt-btn-secondary');b.setAttribute('aria-pressed','false')}); this.classList.replace('vt-btn-secondary','vt-btn-primary'); this.setAttribute('aria-pressed','true'); row.previousElementSibling.querySelector('span').textContent=this.textContent">Yesterday</button><button type="button" class="vt-btn vt-btn-sm vt-btn-primary" aria-pressed="true" onclick="var row=this.parentElement; row.querySelectorAll('.vt-btn').forEach(function(b){b.classList.replace('vt-btn-primary','vt-btn-secondary');b.setAttribute('aria-pressed','false')}); this.classList.replace('vt-btn-secondary','vt-btn-primary'); this.setAttribute('aria-pressed','true'); row.previousElementSibling.querySelector('span').textContent=this.textContent">Last 7 days</button><button type="button" class="vt-btn vt-btn-sm vt-btn-secondary" aria-pressed="false" onclick="var row=this.parentElement; row.querySelectorAll('.vt-btn').forEach(function(b){b.classList.replace('vt-btn-primary','vt-btn-secondary');b.setAttribute('aria-pressed','false')}); this.classList.replace('vt-btn-secondary','vt-btn-primary'); this.setAttribute('aria-pressed','true'); row.previousElementSibling.querySelector('span').textContent=this.textContent">Last 30 days</button><button type="button" class="vt-btn vt-btn-sm vt-btn-secondary" aria-pressed="false" onclick="var row=this.parentElement; row.querySelectorAll('.vt-btn').forEach(function(b){b.classList.replace('vt-btn-primary','vt-btn-secondary');b.setAttribute('aria-pressed','false')}); this.classList.replace('vt-btn-secondary','vt-btn-primary'); this.setAttribute('aria-pressed','true'); row.previousElementSibling.querySelector('span').textContent=this.textContent">This month</button><button type="button" class="vt-btn vt-btn-sm vt-btn-secondary" aria-pressed="false" onclick="var row=this.parentElement; row.querySelectorAll('.vt-btn').forEach(function(b){b.classList.replace('vt-btn-primary','vt-btn-secondary');b.setAttribute('aria-pressed','false')}); this.classList.replace('vt-btn-secondary','vt-btn-primary'); this.setAttribute('aria-pressed','true'); row.previousElementSibling.querySelector('span').textContent=this.textContent">This year</button>
</div>
Guidelines
API Reference
| Class | Type | Description |
|---|---|---|
vt-calendar |
Base | The card — 12px padding, 8px between header, weekdays and days; data-vt-calendar="single|range" wires it |
vt-calendar-sm |
Size | Compact card — 8px padding, 28px days |
vt-calendar-header |
Part | Month title between the previous / next buttons (vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm, data-vt-calendar-nav) |
vt-calendar-title |
Part | The month, Label/MD (data-vt-calendar-heading) |
vt-calendar-weekdays |
Part | Row of vt-calendar-weekday headings |
vt-calendar-days |
Part | The weeks, 2px apart (data-vt-calendar-grid) |
vt-calendar-week |
Part | Seven vt-calendar-day buttons in a row |
vt-calendar-caption |
Part | Caption under the days — the chosen range |
vt-calendar-cell |
Part | A day with an event: the day button and its dot |
vt-calendar-dot |
Part | Event dot under the number, brand; vt-calendar-dot-warning / vt-calendar-dot-error recolor it |
vt-date-picker-field |
Date picker | Wraps the trigger and the card, so the card can float under the trigger |
vt-date-picker-trigger |
Date picker | On a vt-input button: the field that opens the card — a 16px icon and the value |
vt-date-picker-placeholder |
Date picker | The trigger's text while no date is chosen, muted |
vt-date-picker-floating |
Date picker | On the vt-calendar: the card floats 8px under the trigger with a large shadow |
vt-date-picker-presets |
Date picker | Row of quick ranges — vt-btn vt-btn-sm, the chosen one vt-btn-primary |
vt-calendar-weekday |
Component | Weekday heading — Caption, muted, 32px wide |
vt-calendar-day |
Component | Day button — 32px circle |
vt-active |
State | The selected date — filled with the brand color |
vt-today |
State | Today — ringed |
vt-outside |
State | A day of the previous or next month — dimmed and disabled |
vt-range-start/vt-range-end |
State | Ends of a range — a brand circle on the half of the band that leads into the range |
vt-range-middle |
State | Days inside a range — one continuous light band, rounded where a week row starts or ends; with vt-today the ring stays on it |
data-vt-week-start="1" |
Attribute | Weeks start on Monday (Sunday by default) |
Accessibility
| Feature | Details |
|---|---|
| Buttons | Every day is a button with an aria-label of the full date and aria-pressed when selected |
| Keyboard | Arrow keys move between days, Home / End jump to the month's ends; days of other months are disabled |
| Labels | The month heading is aria-live, so a screen reader announces the new month |
| Navigation | Icon-only month buttons carry an aria-label (Previous month / Next month) |