GitHub ↗

Panel

Interactive production-grade hypermedia component for HTMXUI.

Interactive Preview

{content}

HTML Source

<!-- 
  Component: panel.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="rounded-lg border border-border bg-card text-card-foreground shadow-sm">
  <div class="p-6">
    {content}
  </div>
</div>