Timeline

Live Demos Hub
GitHub ↗

Timeline

Interactive production-grade hypermedia component for HTMXUI.

Interactive Preview

    {items}

HTML Source

<!-- 
  Component: timeline.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' }"
-->
<ol hx-ext="reactive" hx-state="{ themeColor: \'primary\', size: \'md\', isOpen: false }"  class="relative border-l border-border ml-3 mt-3">
  {items}
  <!-- Example item:
  <li class="mb-10 ml-4">
    <div class="absolute w-3 h-3 bg-muted rounded-full mt-1.5 -left-1.5 border border-background"></div>
    <time class="mb-1 text-sm font-normal leading-none text-muted-foreground">Date</time>
    <h3 class="text-lg font-semibold text-foreground">Title</h3>
    <p class="mb-4 text-base font-normal text-muted-foreground">Description</p>
  </li>
  -->
</ol>