Empty State
Live Demos HubEmpty State
Interactive production-grade hypermedia component for HTMXUI.
Interactive Preview
{icon}
{title}
{description}
{action}HTML Source
<!--
Component: empty-state.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="flex flex-col items-center justify-center p-8 text-center border-2 border-dashed border-border rounded-lg bg-muted/20">
<div class="mb-4 text-muted-foreground">{icon}</div>
<h3 class="text-lg font-semibold">{title}</h3>
<p class="text-sm text-muted-foreground mb-4">{description}</p>
{action}
</div>