Calendar
Live Demos HubCalendar
Interactive production-grade hypermedia component for HTMXUI.
Interactive Preview
{month_year}
{days}
HTML Source
<!--
Component: calendar.html
Configurable State: themeColor ('primary'|'secondary'|'destructive'), size ('sm'|'md'|'lg'), isOpen (boolean)
Usage: Bind styles dynamically using hx-class="{ 'bg-primary': themeColor === 'primary' }" or hx-style="{ width: size === 'lg' ? '100%' : 'auto' }"
-->
<div hx-ext="reactive" hx-state="{ themeColor: \'primary\', size: \'md\', isOpen: false }" class="p-3 border border-border rounded-md bg-background inline-block">
<div class="flex justify-between items-center mb-4">
<button class="p-1 hover:bg-accent rounded"><</button>
<div class="font-medium text-sm">{month_year}</div>
<button class="p-1 hover:bg-accent rounded">></button>
</div>
<div class="grid grid-cols-7 gap-1 text-center text-xs">
{days}
</div>
</div>